MERGING MULTIPLE TEXT FILES

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Michael
Posts: 2
Joined: Tue Mar 16, 2004 2:40 pm

MERGING MULTIPLE TEXT FILES

Post by Michael »

Question was: I have about 200 text files that I want to merge all of them into one single file without having to copy/paste each file. Does TextPad have the features to do this?

I found answer: In textpad use context popup (right click) and select Insert, Files

I tested it. It is working for maximum 112 files ! In case of bigger quantity, inserting is not working. Can somebody help me ? I want to merge 1000 files.
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

I'd go with Berend's way of doing it

Assuming they are all in the same folder, shell out to DOS (Start -> Run and either type cmd or command depending on your OS) change to that directory. copy /b *.txt merged.txt. If you need to have multiple extensions, it simply becomes copy /b *.txt+*.csv+*.foo merged.txt
e.g.

Code: Select all

F:\>cd python
F:\python>dir *.py
 Volume in drive F is DATA
 Volume Serial Number is 5013-1526

 Directory of F:\python

07/09/2003  10:21a             132,266 ADO.py
02/21/2002  01:45p               1,769 apihelper.py
02/04/2004  08:59p              10,885 bayerClient.py
12/09/2003  11:56p               4,652 bfellows.py
12/10/2003  05:12p               7,297 cass.py
11/17/2003  12:52a               9,832 client.py
08/07/2003  02:49p               4,159 csvFun.py
11/20/2003  10:07p               1,740 d3s7.py
07/10/2003  04:11p               1,717 databaseConnect.py
11/14/2003  11:45p                 487 Dealer.py
12/12/2003  09:17p                 305 dedupeFile.py
01/17/2004  01:48p                 612 dirCompare.py
08/07/2003  03:00p               2,991 elancoVisualElkOutput.py
10/29/2003  12:02a               3,076 email.py
07/31/2003  10:57a                 653 fileComparer.py
12/11/2003  10:10p               2,189 fileSplitter.py
10/02/2003  08:51a                 110 foreign.py
03/10/2004  11:43p                 744 gcotterl.py
09/10/2003  08:50p                  74 kcIrish_buildNavigationTable.py
01/18/2004  08:56p               1,747 mapOut.py
07/27/2003  09:24p               1,239 mp3Renamer.py
07/30/2003  10:38p                 415 nullRemover.py
11/19/2003  11:20p                 713 Parser.py
03/14/2003  10:26p                 776 Person.py
10/23/2003  09:14a               2,384 pfranken.py
11/16/2003  11:28p                 709 pickleViewer.py
10/16/2003  12:13p                 407 pop3Reader.py
09/25/2003  11:13p              19,376 propertyGenerator.py
11/17/2003  12:43a                 429 qd.py
08/28/2003  11:14p               3,185 quakeFiles.py
01/17/2004  01:12p               8,654 quakeMapBuilder.py
09/23/2003  11:46a               4,002 quakeServer.py
11/16/2003  10:09p               2,871 server.py
11/25/2003  11:49p               2,513 shiver.py
11/19/2003  10:33p               3,469 spamRequestor.py
08/25/2003  08:41p                 195 test.py
12/10/2003  12:52p              31,308 testConnection.py
11/19/2003  11:01p              10,962 tester.py
02/24/2004  01:36p                 286 untestedExcelMaker.py
02/24/2004  02:17p              20,821 UseExcel.py
11/11/2003  12:30p               2,003 vamshireddy007.py
10/19/2003  11:24p               4,039 visualElk.py
11/16/2003  10:13p               9,179 webPageViewer.py
07/31/2003  10:03a               8,854 zag.py
              44 File(s)        326,094 bytes
               0 Dir(s)   1,409,552,384 bytes free

F:\python>copy /b *.py merged.py
ADO.py
apihelper.py
bayerClient.py
bfellows.py
cass.py
client.py
csvFun.py
d3s7.py
databaseConnect.py
Dealer.py
dedupeFile.py
dirCompare.py
elancoVisualElkOutput.py
email.py
fileComparer.py
fileSplitter.py
foreign.py
gcotterl.py
kcIrish_buildNavigationTable.py
mapOut.py
mp3Renamer.py
nullRemover.py
Parser.py
Person.py
pfranken.py
pickleViewer.py
pop3Reader.py
propertyGenerator.py
qd.py
quakeFiles.py
quakeMapBuilder.py
quakeServer.py
server.py
shiver.py
spamRequestor.py
test.py
testConnection.py
tester.py
untestedExcelMaker.py
UseExcel.py
vamshireddy007.py
visualElk.py
webPageViewer.py
zag.py
        1 file(s) copied.

F:\python>textpad merged.py
I choose to fight with a sack of angry cats.
Post Reply