in reply to Re^3: Golf: reverse sort /etc/passwd by UID
in thread Golf: reverse sort /etc/passwd by UID
No, no. It does work (tested and confirmed). See my reply to thundergnat.
NOTE- remember you have to omit the typos though, as I already pointed out. So far, the winner remains:
UPDATE: thundergnat is right that the code below DOESN'T work as intended
perl -e 'print reverse sort{/(:\d+:)/<=>/(:\d+:)/}<>' /etc/passwd
Tommy
A mistake can be valuable or costly, depending on how faithfully you pursue correction
A mistake can be valuable or costly, depending on how faithfully you pursue correction
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Golf: reverse sort /etc/passwd by UID
by thundergnat (Deacon) on Feb 05, 2013 at 20:40 UTC |
In Section
Meditations