sort on unix by how many lines in a file code example Example: alphabetically order text file sort file.txt -o file.txt