Search Results

Search: Posts Made By: Ali Sarwar
1,400
Posted By RavinderSingh13
Hello Ali Sarwar, Following may help you in...
Hello Ali Sarwar,

Following may help you in same.

awk '$4==0 ##### It is a condition check(similar what we do in if else condition check). Where $4 means 4th field and we are checking here...
1,400
Posted By Don Cragun
It seems like: /usr/openv/volmgr/bin/vmquery -b...
It seems like:
/usr/openv/volmgr/bin/vmquery -b -p 5 | awk '$4==0{c++}END{print c}'
should give you what you want.

If you are running this on a Solaris/SunOS system, change awk to...
1,949
Posted By RavinderSingh13
Hello Ali Sarwar, Could you please use...
Hello Ali Sarwar,

Could you please use following and let me know if this helps you.

while read line
do
tail -2 $line | head -1 >> finalfile.txt
done < "output.txt"
Thanks,
R. Singh
Showing results 1 to 3 of 3

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