Riviera 1366333774 learn To sort(1) on the second field: -k 2,2 greycat 1574095211 forget greycat 1574095213 learn To sort(1) on the second field: sort -k 2,2; This means "the sort key is field 2 only". sort -k 2 means "the sort key runs from the start of field 2 to the end of the line".