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