Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2006, 07:30 PM
JohnnyHumongous JohnnyHumongous is offline
Senior Member
 
Join Date: Jan 2005
Posts: 1,186
Default 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?
Reply With Quote
  #2  
Old 02-03-2006, 08:04 PM
kaf22 kaf22 is offline
Member
 
Join Date: Mar 2004
Posts: 36
Default 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
Reply With Quote
  #3  
Old 02-03-2006, 09:32 PM
JohnnyHumongous JohnnyHumongous is offline
Senior Member
 
Join Date: Jan 2005
Posts: 1,186
Default 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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.