11-22-2008
34,
0
Join Date: Jul 2008
Last Activity: 23 June 2014, 1:57 PM EDT
Posts: 34
Thanks Given: 0
Thanked 0 Times in 0 Posts
How to get this
Hi
I want to compare the output of below command to a numeric value, say 50.
df -k | grep abc | awk '{print $5}' | sed 's/.\{1\}$//g' >var
when i am taking this output in any variable, i am not able to use if [ $var -gt 50 ]
can some one plz hep me out in this.
Thanks in advance.