Does this work?
## typos (see below) corrected perl -E"say reverse sort{/(:\d+:)/<=>/(:\d+:)/}<>" /etc/passwd
(Maybe not if usernames can be all digits?)
In reply to Re: Golf: reverse sort /etc/passwd by UID
by BrowserUk
in thread Golf: reverse sort /etc/passwd by UID
by Tommy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |