aboutsummaryrefslogtreecommitdiffstats
s6-portable-utils: the s6-sort program

s6-portable-utils
Software
skarnet.org

The s6-sort program

s6-sort sorts its input.

Interface

     s6-sort [ -b ] [ -c ] [ -f ] [ -r ] [ -u ] [ -0 ]
  • s6-sort reads its stdin until EOF
  • It sorts all the lines it read alphanumerically
  • It prints the sorted lines to stdout and exits 0

Options

  • -b : ignore leading spaces and tabs at the beginning of each line when sorting
  • -c : suppresses normal output, just returns 0 if the output would have been the same as the input and 1 otherwise
  • -f : ignore case when sorting
  • -r : reverse sort
  • -u : suppresses duplicate lines
  • -0 : input and output lines are separated by null characters instead of newlines

Posixness

s6-sort is not suitable as a Single Unix sort program.