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
>>> echo > foo 'banana
1.
_>pear
_>apple
_>orange'
Create file
with 4 lines.
foo
>>> sort foo
2.
apple
banana
orange
pear
Sort file
foo
and send output to the console.
sort
Console Commands 13–99