Hello All,
I have following lines and i want an output displaying the disc space greater than 80%.
df -kh
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 465Gi 229Gi 235Gi 50% 909633 4294057646 0% /
devfs 182Ki 182Ki 0Bi 100% 628 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
I'm using the AWK Command so extract the column so checked can be applied on its output but it is giving me the following lines,
Owaiss-MBP:Scripting $ awk '{print $9}' DF.rtf
Mounted
/\
/dev\
100%
100%
Owaiss-MBP:Scripting $ awk '{print $8}' DF.rtf
-kh\
%iused
0%
100%
0
0
Help me out in this regard
Thank you!