sort command

NAME
   sort - sort lines of text files

SYNOPSIS
   sort [OPTION]... [FILE]...
   sort [OPTION]... --files0-from=F

Sort options:
     -b, --ignore-leading-blanks ignore leading Blanks area
     -d, --dictionary-order only consider an empty area and alphabetic characters
     -f, --ignore-case Ignore case of letters
     -g, - general-numeric-sort in a conventional numeric sort
     -i, --ignore-nonprinting ordering only printable characters
     -M, --month-sort compare (unknown) < "January" <... < "December"
     in when LC_ALL is = C (Unknown) < `JAN '<... <` DEC'
     -H, --human-Sort-numeric numbers used legibility (e.g.: 2K. 1G)
     -n, according --numeric-Sort numeric string comparison
     -R, --random-sort sorted according to a random hash
     = random bytes file obtained from the specified file-Source --random
     -R & lt, --reverse reverse sorts the output
     --sort = WORD specified according WORD the collating:
     general digital -g, high readability -h, month -M, digital -n,
     random -R, version -V
     -V, --version-Sort Sort naturally within the text

Other options:
     --batch-size = NMERGE a merger up to NMERGE input; if you enter more
     use temporary files
     -c, --check, --check = diagnose- first checks whether the input is sorted, ordered the Ruoyi no operation
     -C, --check = quiet, --check = silent similar -c, but does not report a random row
     --compress-program = specified program uses temporary files compressed; using the program
     -d of parameter decompressed file
     --files0-from = NUL terminated file names read from the specified file if the file is
     designated as "-" read from the standard input file name
     -k, --key = position 1 [, location 2] at a starting position 1 key, 2 terminates at a position (end of the line by default)
     -m, --merge merge sorted files, no sort
     -o, --output = file and to write the results to a file non-standard output
     -s, --stable disabling last-resort comparison to stabilize the comparison algorithm
     -S, --buffer-size = the size of the main memory specified cache size
     -t, --field-separator = separator instead of the specified delimiter non-space to space conversion
     -T, --temporary-directory = directory instead of the specified directory $ TMPDIR or / tmp as
     Temporary directory, can be used multiple options specify multiple directories
     -u, --unique with -c, strict check ordering; do not match -c, output only the result of a sort
     -z, --zero-terminated byte 0 to not mark the end of the new line as the line
     --help display this help and exit
     --version display version information and exit

 

 

 

Guess you like

Origin www.cnblogs.com/imcati/p/11619172.html