<tt>sort</tt>: Sorting a File



next up previous contents
Next: Exercises Up: Utilities Previous: sed: Stream Editor

sort: Sorting a File

sort [-r] file

This is a much simplified sort command syntax.

sort will sort the input file in the ASCII collating sequence. The -r flag will sort file in reverse ASCII collating sequence.

The default output is the standard output (the original file is left unchanged).



Super-User
Fri Feb 17 15:55:40 EST 1995