Linux System Administration
Intermediate Commands
sort
The
sort
command quickly puts the lines of a text file in alphanumeric order.
If the file's lines start with numbers, and you want to sort in numeric order, use the
-n
option.
Use the
-r
option if you want to reverse the order of the sort.
Prev
Page 9
Next