Printing Disk Space Less Than %80
by Tonybe from LinuxQuestions.org on (#50C0C)
Hi! I'm trying to write a script that prints the % of disk space if it's under %80:
Example:
/var/log %50 # it prints
/opt %81 # doesn't print
Script results:
/var/log %50
I'm using the df -Ph command but can't find out how to print it if it's under %80. df's printing everything. Any ideas? Googling's not helping. Thanks!


Example:
/var/log %50 # it prints
/opt %81 # doesn't print
Script results:
/var/log %50
I'm using the df -Ph command but can't find out how to print it if it's under %80. df's printing everything. Any ideas? Googling's not helping. Thanks!