perl -MSort::Key=rikeysort -e'print rikeysort{/(\d+)/;$1}<>' /etc/passwd #### perl -MSort::Key=rikeysort -E'say rikeysort{/(\d+)/;$1}<>' /etc/passwd