[CentOS] tricky perl question - ascending order
Kahlil Hodgson
kahlil.hodgson at dealmax.com.auSun May 23 21:20:31 UTC 2010
- Previous message: [CentOS] tricky perl question - ascending order
- Next message: [CentOS] tricky perl question - ascending order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/24/2010 06:39 AM, Jozsi Vadkan 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 > > Thank you!! FYI a lovely piece of magic from 1994:-) http://en.wikipedia.org/wiki/Schwartzian_transform Kal
- Previous message: [CentOS] tricky perl question - ascending order
- Next message: [CentOS] tricky perl question - ascending order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list