http://qs1969.pair.com?node_id=286184


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?