in reply to Golf: reverse sort /etc/passwd by UID
Only suitable for a terminal, not to be redirected to a file:
# 1 2 3 4 # 12345678901234567890123456789012345678901234 perl -e 'print sort map 9/(1+(split/:/)[2])."\r$_",<>' /etc/passwd
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Golf: reverse sort /etc/passwd by UID
by tobyink (Canon) on Feb 06, 2013 at 22:11 UTC | |
by choroba (Cardinal) on Feb 07, 2013 at 10:35 UTC | |
Re^2: Golf: reverse sort /etc/passwd by UID
by MidLifeXis (Monsignor) on Feb 06, 2013 at 18:02 UTC | |
by Tommy (Chaplain) on Feb 06, 2013 at 22:02 UTC | |
by choroba (Cardinal) on Feb 07, 2013 at 12:19 UTC | |
by MidLifeXis (Monsignor) on Feb 07, 2013 at 12:56 UTC | |
Re^2: Golf: reverse sort /etc/passwd by UID
by Tommy (Chaplain) on Feb 06, 2013 at 17:24 UTC |
In Section
Meditations