01-26-2019, 12:13 AM
TheTominator wrote:
Of course, Terminal can do it.
$ sort unsorted.txt > sorted.txt
This is the way to do it with least effort. You can drag your input file to the Terminal.app window after typing sort then type > then drag the folder you want the output file to go into to the Terminal.app window and be sure to append a filename there e.g. /sorted.txt with no spaces...
Something that looks like this:
$ sort /Users/username/Desktop/source.txt > /Users/username/Desktop/sorted.txt
Oh, and it's available on any Mac, no extra apps needed. At the Apple Store? You can run this. Bonus points for eliminating duplicates by piping through the uniq command!