#1
|
|||
|
|||
Help Manipulating .txt Files
I'm wondering... does anyone know a way to merge a bunch of separate .txt files into one large file? Or conversely, does anyone know a way to do a Find-Replace on several text files at once?
Basically I have to do a find-replace for 3 different things in about 80 text files. Because the text files are so large and my computer so crappy, it takes up to 5 minutes to complete the find-replace on one single text file. Opening each file up and doing the find-replaces would take hours... The ways I described above would still take a long time but at least I could run the find-replace and walk away from my computer, go to the gym or something. Any thoughts? |
#2
|
|||
|
|||
Re: Help Manipulating .txt Files
Hey Johnny, here's how you can do it (presuming you're running Windows):
1. Open up a command prompt 2. Switch to the directory that has your files in it. Then type in "type file1 file2 etc >> newfile.txt" where file1, file2 and etc are the files you have and newfile.txt is the name of the file that will be created. This will work as long as the files are straight text files (not rtf, doc, etc.) Kaf |
#3
|
|||
|
|||
Re: Help Manipulating .txt Files
[ QUOTE ]
Hey Johnny, here's how you can do it (presuming you're running Windows): 1. Open up a command prompt 2. Switch to the directory that has your files in it. Then type in "type file1 file2 etc >> newfile.txt" where file1, file2 and etc are the files you have and newfile.txt is the name of the file that will be created. This will work as long as the files are straight text files (not rtf, doc, etc.) Kaf [/ QUOTE ] Thanks for the tip. I actually resolved the issue by downloading a program called TextCollector that grouped the files into one master text file. Then I downloaded a text editor called Syn Editor (about 5 million times better than notepad) and did the find-replaces there. |
|
|