Article 50C0C Printing Disk Space Less Than %80

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!latest?d=yIl2AUoC8zA latest?i=AdkAFsjrlO0:XAnCH8eFWbA:F7zBnMy latest?i=AdkAFsjrlO0:XAnCH8eFWbA:V_sGLiP latest?d=qj6IDK7rITs latest?i=AdkAFsjrlO0:XAnCH8eFWbA:gIN9vFwAdkAFsjrlO0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments