[prev] [index] [next]

sort: sort lines (cont)

Some options:

-r sort in descending order (reverse sort)
-n sort numerically rather than lexicographically
-d dictionary order: ignore non-letters and non-digits
-t'c' use character c to separate columns (default: space)

Note: the ' ' around the separator char are usually not necessary, but are useful to prevent the shell from mis-interpreting shell meta-characters such as '|'.

Hint: to specify TAB as the field delimiter with an interactive shell like bash, type CTRL-v before pressing the TAB key.