tldr/common/sort.md
Peter Tripp e4118b1585 A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler

Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 12:36:05 -08:00

217 B

sort

sort lines of text files

  • Sort a file in ascending order

sort {{filename}}

  • Sort a file in descending order

sort -r {{filename}}

  • Sort passwd file by the 3rd field

sort -t: -k 3n /etc/passwd