http://www.perlmonks.org?node_id=654236


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