Intro to sort
13Jul08
The sort command will sort the lines in a text file according to various criteria. The default sort order is ASCII character order, which has punctuation characters first, then numbers, then upper case letters, then lower case letters.
Example of an unsorted file:
$ cat file1 sarah . John 7 carol Claire eric 43 ,
Sorting the file:
$ sort file1 , . 43 7 Claire John carol eric sarah
Filed under: unix | 0 Comments
Tags: basic, command, sort, unix