how to sort lines in text file by word in linux code example Example: alphabetically order text file sort file.txt -o file.txt