Hi All,
I have a file disk_space.log.
cat disk_space.log
94% /
32% /boot
38% /mnt/data
100% /media/CDROM
I want the output, like
cat disk_space.log
94% /
100% /media/CDROM
That means print the line those are grater-than 90%. And rest of the line is remove from file.
I have a script but that is not working properly.
cat disk_space.log | awk -F"%" '{print $1}' | awk '$1>90'
Please Help me.
Thanks in advance