Friday, January 9, 2015

Merge a large number of text files in a subdirectory

Suppose there are thousands of text files files in a subdirectory and they should be merged into one huge text file.
It can be done manually but its a lot of work and it will need a lot of time.Fortunately
there is a very easy to do this automatically in Windows.


Open a command prompt in that directory and type
copy /b *.txt newfile.000

where *.txt is the wildcard for all text files and newfile.000 is the name
of the new file where all the text files will be merged.

No comments:

Post a Comment