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