You're viewing a comment by Sydney and its responses.

Sydney Permalink
October 07, 2008, 05:55

Hello, I have been playing with AWK a little and have this line.

df -h | grep / | grep % | awk '$(NF-1) >= "20%" {print $NF,": ", $(NF-1)}'

Everything works great except I have a volume with 3% usage. AWK in my usage of it only appears to evalute the first number of the “20%”.

I have looked around the net some for a resolution to this and read some documentation. I know that it is something simple I am overlooking, but you folks look like you know what you are doing and are active so I ask; What usage of AWK should I implement to make 1 !> 10.

Thanks in advance.
–Sydney

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "sandbox_92": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.