December 1999
Beginner
528 pages
11h 10m
English
The sort command enables you to sort on many different fields (sort keys) in different column orders. You’ll find sort will come in very handy when going over log files, or rearranging the text columns for downloaded files for another user. In fact, when you use other UNIX tools it assumes the files to be worked on have been previously sorted. Anyway, it makes more sense to have a file sorted than unsorted.
The sort utility that comes with UNIX/LINUX is very powerful, though care has to be taken when using different combinations of the sort options as they can lead to unexpected results. The options for sort are very long, and even I have trouble sometimes working out what the different switches actually ...
Read now
Unlock full access