hi all,i m using this script for disk space :
####################################
#!/bin/ksh
#
HOSTS='/usr/bin/cat /host_list'
DATE=$(date)
DISK=$(df -gt)
afile=/tmp/diskspace.log
>$afile
#
for i in $HOSTS
do
echo ip: $i passed
echo ip: $i passed >>$afile
echo date: $DATE checked >>$afile
echo disk space: $DISK checked
echo disk space: $DISK checked >>$afile
cat /tmp/1 >>$afile
done
#######################################
the output i m getting is :
filesystem GB blocks Free used Free %used Mounted on /dev/hd4 4.00 1.62 2.38 57% /usr......................
I want this to be like this:
Filesystem GB blocks Used Free %used Mounted on
/dev/hd4 4.00 1.62 2.38 57% /usr
Please give some suggestions!!!!!!!!!!!!!!
I m using AIX
Thanks