COHERENT help

This page displays the COHERENT help information for sort.

Listing of available help pages


sort -- Sort lines of text

sort [-bcdfimnru] [-t c] [-o outfile] [-T dir] [+beg[-end]][file ...]

Options:
     -c        Check if input is already ordered
     -m        Merge already-sorted input files
     -o name   Place output in name, not stdout
     -tc       Tab character is c
     -T dir    Use dir for temporary files
     -u        Output only records with unique keys
Key options:
     -b        Skip leading blanks in fields
     -d        Dictionary ordering for keys
     -f        Fold upper case into lower case in key comparison
     -i        Ignore control characters in key comparison
     -n        Numeric comparison
     -r        Reverse sort ordering
Position:
     +m.nf     Key starts m fields into record and n characters into that
               field; f may contain optional flags from key options above which
               apply only to that positional
     -m.nf     Optional ending position of key (same form as above)

If no file is given, sort stdin.