Benches / macOS
▲ 10 ▼
How can I combine multiple text files int… apple Verified · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
I have many, many lists of song titles. Each in its own textedit file. There is tons of overlap and duplication. I want to make a master list that has every song listed.
If I could somehow just merge them all and alphabetize the lines, I could manually get rid of duplicates fairly easily.
I have Tiger. Don't know if I have any application that would help. I probably don't want to buy an application, though, because I suspect I may not be able to stick with Tiger much longer.
I appreciate any tips you can give me.
Thanks a lot,
Bruce
10 replies Sign in or join Beachball Help to reply.
▲ 0 ▼
Texas Mac Man · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you have Word, copy & paste the file names into a document.
Then select all of the file names & then under Table, select Sort.
Cheers, Tom 😉
▲ 0 ▼
BDAqua · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Bruce, Tex-Edit Plus for OS X...
http://www.tex-edit.com/
It can Merge files then Sort them easily, even has a remove duplicate lines script available. 🙂
If the version you get doesn't have the sort perchance, here's a link, put sort in the search scripts box, get the second one, Sort Selection...
http://dougscripts.com/texedit/
▲ 0 ▼
rccharles · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
NeoOffice is freeware.
"NeoOffice is a full-featured set of office applications (including word processing, spreadsheet, and presentation programs) for Mac OS X. We have created an office suite that is adapted to the unique needs of Mac users by taking the features in Sun Microsystems' OpenOffice.org office suite"
http://www.neooffice.org/neojava/en/index.php
edit > highlight all
tools > sort
▲ 0 ▼
Michael Wasley · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
Bruce,
AppleWorks will sort paragraphs.
Select block of text then go Edit > Sort Selected Paragraphs …
Michael
▲ 0 ▼
Bruce Delaplain1 · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
thanks, Texas, but I don't have Word. 🙂
▲ 0 ▼
Bruce Delaplain1 · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi Michael,
That sounds great, but I don't have appleworks either.
▲ 0 ▼
Camelot · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
This is trivial to do in the command-line, if you're savvy:
sort file1.txt file2.txt file3.txt > file4.txt
This will read the files file1.txt, file2.txt and file3.txt, sort the contents and write the output to file4.txt
▲ 0 ▼
Bruce Delaplain1 · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
that sounds great Camelot. Will you give me the details on how/where to do that?
Thanks,
Bruce
▲ 0 ▼
rccharles · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'd go with the command line. However, did you notice my earlier post on ...
NeoOffice is freeware. It's a clone of MS Office.
http://www.neooffice.org/neojava/en/index.php
edit > select all
tools > sort
▲ 0 ▼
Camelot · 7 months ago
Imported from the Apple Support Forums via the Wayback Machine 🔗
that sounds great Camelot. Will you give me the details on how/where to do that?
Open /Applications/Utilities/Terminal.app
Type 'sort ' (without the quotes, note the trailing space, and do NOT press return)
Drag the file(s) that you want to sort to the terminal window
type '> sorted.txt' (without the quotes)
Press return. Sort will read the files, sort them and put the sorted list into the file called 'sorted.txt' in your home directory.