PROPHET/OS

NAME

sort: reads every line from in and writes them in order

SYNOPSIS

sort [-r] [-u]

DESCRIPTION

Reads every line from in and writes them in order.

-r   turn the order around
-u   drop repeats

At most 512 lines, and it says so when there are more rather than quietly writing the first 512. Sorting needs every line before it can write the first one, so the bound is the buffer, and a bound that lies is worse than a bound that is small.

EXAMPLE

$ sort --help
sort [-r] [-u]
  reads every line from in, writes them in order
  -r turns the order around, -u drops repeats
  at most 512 lines, and it says so when there are more

SEE ALSO

uniq, grep, wc