#!/bin/sh
#   dfloop [n] [dir]
# Show the output of df every n seconds.
if [ $# -lt 1 ];then set 10 .;fi
if [ $# -lt 2 ];then set $1 .;fi
cd $2
H=`hostname`
{
echo $H `date +%H:%M:%S:` `df .|head -1` |sed -e s/capacity/---/
while true
do	echo $H `date +%H:%M:%S:` `df .|tail -1`
	sleep $1
done
} | align -b1 l r l9 r8 r8 r8 r3

sleep 20
