sort : sort lines
The sort command copies input to output but ensures that the
output is arranged in some particular order of lines.
By default, sorting is based on the first characters in the line.
Other features of sort :
- understands that text data sometimes occurs in delimited fields.
(so, can also sort fields or columns other than the first (which is the default))
- can distinguish numbers and sort appropriately
- can ignore punctuation or case differences
- can sort files "in place" as well as behaving like a filter
- capable of sorting very large files
|