O'Reilly logo
  • nthesis bv thinks this is interesting:

cut -f 2 -d : /etc/passwd | sort -n to sort the second

From

Cover of Red Hat® RHCSA™/RHCE® 7 Cert Guide: Red Hat Enterprise Linux 7 (EX200 and EX300)

Note

should be: cut -f 3 -d : /etc/passwd | sort -n to sort the third field