I've been using the script below to check the filesystem usage on 20 servers and looking at the output now I want to reduce the amount of lines I look at to just server with over 90% usage on a filesystem.
Is there a way to suppress the col header from the df command?
#!/bin/csh
cp /dev/null ./temp1
set infile = "./main_servers"
foreach abc ( `cat $infile` )
echo "---------------------------------------------" >>temp1
echo "$abc" >>temp1
echo "" >>temp1
rsh $abc df -k -Fufs | awk '{print $6, " ", $5 }' >>temp1
end
Is there a way to suppress the col header from the df command?
#!/bin/csh
cp /dev/null ./temp1
set infile = "./main_servers"
foreach abc ( `cat $infile` )
echo "---------------------------------------------" >>temp1
echo "$abc" >>temp1
echo "" >>temp1
rsh $abc df -k -Fufs | awk '{print $6, " ", $5 }' >>temp1
end