in reply to
collect the system data
I know this is perl monks, but I have to ask: What's wrong with
sort -rnk3 logfile
? If you want just the top 2, then:
sort -rnk3 logfile | head -2
should do what you want. Do you want the rest unsorted?
Comment on
Re: collect the system data
Select
or
Download
Code
In Section
Seekers of Perl Wisdom