1) Is it the correct way to list all the filesystems > 90%
2) Is there any way to print hostname in this command ? The hostname should get printed in sms.txt file only when there exists filesystems > 90%.
If there is no file system > 90 % hostname should NOT get printed in sms.txt file.
2.same command in sh script file.
3.same command in bash script file.
I also tried changing h=$(hostname) to h=`hostname` but I am getting same error in all above cases..
error
awk: syntax error near line 1
awk: bailing out near line 1