Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Parsing a data file to find the highest value.

by sh1tn (Priest)
on Dec 01, 2007 at 00:39 UTC ( #654236=note: print w/ replies, xml ) Need Help??


in reply to Parsing a data file to find the highest value.

perl -ne '$"<($_=(split(/:/, $_))[1]) and $"=$_;eof&&print$"' file.con +f



Comment on Re: Parsing a data file to find the highest value.
Download Code
Re^2: Parsing a data file to find the highest value.
by Himalaya (Initiate) on Dec 12, 2013 at 17:25 UTC
    Its a great command line usage. But it does NOT work if input data is negative numbers. Can you throw some light? -Thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://654236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-23 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (131 votes), past polls