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 20:36:05 +00:00
|
|
|
# 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
|
|
|
|
|
2015-11-03 00:07:01 +00:00
|
|
|
`sort -t: -k 3n /etc/passwd`
|