Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by sh1tn (Priest)
on Dec 01, 2007 at 00:39 UTC ( [id://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


Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://654236]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found