sort
Sort file or pipeline
Usage: sort options [list-of-files]
Multiple files are merged before sorting.
Standard Input: Used only if dash (–) is in the list-of-files or no list-of-files is given
Standard Output: Used to display results
SEE ALSO
For more information, see page 266 |
Useful options:
Initial options apply to all sort keys. Options following a sort key apply only to that key.
-b means ignore leading blanks in sort field.
-d means ignore leading punctuation.
-f means fold uppercase and lowercase together.
-k means define sort keys using a new method: -k m opts, n.
-n means sort numbers by magnitude.
-o means save output in the following filename. ...
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.