Definition:
- sorts, merges, or compares all the lines from the given files, or standard input if none are given or for a FILE of ‘-’.
Synopsis:
sort [OPTION]... [FILE]...
List of options:
- …
-
`-n, —numeric-sort, —sort=numeric’
-
-r, --reverse
-k POS1[,POS2],--key=POS1[,POS2]
- To sort on the second field, use ‘—key=2,2’ (‘-k 2,2’)
‘-t SEPARATOR, --field-separator=SEPARATOR
- Separate one field from another.