Combine Text Files from Command Line

Looking for a way to combine files quickly? Using the example of exports from active directory where you export a number of different OU’s you can quickly combine the files into one right from the command line.

copy /b *.txt all.txt /b

this will combine all the files in your directory ending with .txt into one file all.txt

Leave a Reply

Spam Protection by WP-SpamFree Plugin

Search
Categories