User guide

sort
sort sort a file
Arranges the lines of a file in lexicographic order and writes the results to
STDOUT. The size of the file that sort can handle is limited by the size of memory.
Syntax
sort
file
Arguments
file
Specifies the file to be sorted.
Examples
1.
>>> echo > foo ’banana
_>pear
_>apple
_>orange’
Create file
foo
with 4 lines.
2.
>>> sort foo
apple
banana
orange
pear
Sort file
foo
and send output to the console.
Console Commands 13–99