Search Results

Search: Posts Made By: kenchen722
2,695
Posted By getmmg
This will print only the numbers you are expected...
This will print only the numbers you are expected to see.
As per your input it should print 97 twice.
From there its fairly easy to do the calculation yourself.


perl -0lne...
2,695
Posted By pravin27
How about this? awk...
How about this?
awk '/^PSOldGen/{getline;match($0,/[0-9]*\%/);if(int(substr($0,RSTART,RLENGTH-1)) > 98 ){print $0}}' filename
2,695
Posted By itkamaraj
check the below code is working or not... ...
check the below code is working or not...


grep -A 1 "PSOldGen" filename


if the above code is giving the output (with the next line ).. then we can easily count the no. of occurance which...
Showing results 1 to 3 of 3

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