how to sort a file using sort bash code example Example: alphabetically order text file sort file.txt -o file.txt