Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for an app (script?) to alphabetize a list
#8
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!
Reply


Messages In This Thread
Re: Looking for an app (script?) to alphabetize a list - by gabester - 01-26-2019, 12:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)