Thread: Merging files?
View Single Post
Old 03-17-2010, 05:16 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Dave_S View Post
Well, if you are using Windows and can work at the command line it is extremely easy to merge a large number of text files into one file using the COPY command. You just put all the text files into one folder. If the file names are in alphanumeric order you just type COPY *.TXT OUTPUT.TXT . If the file names are not in alphanumeric order you would need to order them yourself with a command like
COPY FILE1.TXT+FILE2.TXT+FILE3.TXT OUTPUT.TXT

Of course the file names that you actually type would be up to you, instead of my generic examples.
Yes that works great for text files but not so good for html that the original question was about. You can do it but then you have all the duplicate head sections, body sections, etc. which is a mess to try and clean up.

Dale
DaleDe is offline   Reply With Quote