sort --help
sort is a UNIX utility that displays a sorted merge of specified files to standard output using the locale installed in the environment.
Use
- sort [-m] [- o output] [- bdfinru] [- t char] [- k keydef] ... [file ...]
- sort -c [-bdfinru] [-t char] [-k keydef] [file]
Launch Options
- -b, --ignore-leading-blanks
- ignore initial skips
- -d, - dictionary order
- consider only omissions, letters and numbers
- -f, --ignore-case
- ignore letter case
- -i, --ignore-nonprinting
- consider only typed characters
- -n, --numeric-sort
- compare string numbers
- -h, --human-numeric-sort
- compare numerical values, taking into account the reduction of the degree (2K, 1G)
- -r, --reverse
- draw comparison results
- -u, - unique
- with -c, check the order strictly; without -c, display only the first among several equals
- -c, --check
- check if input files are sorted; do not sort
- -k, --key = Pos1 [, Pos2]
- start the key in Pos1 and terminate on Pos2 (counting from 1)
- -o, --output = FILE
- output to FILE, not to standard output
- -t, --field-separator = DIVIDER
- use when searching for key fields DIVIDER, and not the transition from non-whitespace to whitespace
-m
- use RAM as buffer