Sorting on a specific field
Lines are sorted character by character, starting at the first character in the line. You can also sort the contents of a file on a specific part of each line.
Each line of text is a series of fields - words and other characters - separated from each other by a delimiter character - the spaces between the words.
- Changing the field delimiter
- Defining the sort field
- Sorting on several fields
- Sorting on a specific part of a field
This site maintained by
unixhelp@math.rutgers.edu



