[CentOS] tricky perl question - ascending order

Sun May 23 20:41:09 UTC 2010
Eduardo Grosclaude <eduardo.grosclaude at gmail.com>

On Sun, May 23, 2010 at 5:39 PM, Jozsi Vadkan <jozsi.avadkan at gmail.com> wrote:
> The solution [from the FreeBSD mailing list]:
>
> perl -00 -e 'print map $_->[0], sort { $a->[1] <=> $b->[1] } map [$_,
> tr/\n//], <>' < before.txt > after.txt

Wow...

-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina