Hello,
I'm trying to only print out the file systems that are greater than 90% full.
So far I've got:
df -k >sawky8
cat sawky8 | grep -v Filesystem | sed "s/%//g;" >sawky9
cat sawky9 | awk '{print $4}' | read stot
print $stot
if [ $stot -gt 90 ] ;then
echo $LINE
Problem is it stops after the first line and also doesn't echo it to the tty. Any help much appreciated - I'm still finding my way around KSH!
Cheers