sort
0%

Text-Fu · Lesson 12

sort

Learn how to order text lines by lexical, numeric, or selected field values with sort.

The sort command reads complete lines, orders them according to selected comparison rules, and writes the result to stdout. It does not change an input file unless you explicitly choose an output operation.