Search Results

Search: Posts Made By: doubt
1,513
Posted By doubt
Thanks PAMU As suggested by you, have used...
Thanks PAMU

As suggested by you, have used your command and get the out put as

Output:
-bash-3.2$ awk 'NR>1{ gsub("%","",$5);if( $5 ~ /[0-9]/ && $5 > 80) {print }}' file
/dev/md/dsk/d10...
1,513
Posted By doubt
Thanks Guys, i had tried with the below...
Thanks Guys,

i had tried with the below command
(awk '{ gsub("%","",$5);if( $5 > 80) {print $5 }}' file)
i can get the out put as
capacity
87
93
83

but i need to validate if ($5 >80)...
1,513
Posted By doubt
Compare the text/integer value from the log file
i have some log (temp.txt) file like
temp.txt:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d30 9.8G 9.7G 14M 100% /opt
/dev/md/dsk/d72 187M 61M 107M 37% /osmf/mgmt...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy