Concatenate/merge/join Multiple Text Files in Windows

Last night I got many log files from 8 different servers, all the servers have date wise log files. I separated out similar logs and kept in a folder, now as per requirement team needs the one type of log in consolidated manner means “USAGE.log” of all days and servers in one USAGE-Consildated.log file.

I was searching for some utility on Google but not get any. Later I thought about DOS Batch command to do the same but a simple copy command did it for me.

Copy /a *.log USAGE-Consildated.log

About nitingautam

I am Tech Lead (Java/J2EE/ExtJs) with a MNC located @ Gurgaon.
This entry was posted in Articles, HowTo and tagged . Bookmark the permalink.

2 Responses to Concatenate/merge/join Multiple Text Files in Windows

  1. Someone in the Web Ether says:

    Hey major thank you for this. Saved me a relative ton of time writing a program for this.

  2. Joline says:

    Heh! The log messages are peprhas a little confusing at first, sorry about that. The scanning engine is separate from the work engine in CC, which is why there is the second scan. You can think of the first scan as SCAN:FIND and the second as SCAN:REMOVE . This makes it easy to add / modify worker engines in the future. You’re absolutely right, though, the scanner could be made smarter. I will add that to the TODO list.

Leave a Reply

Your email address will not be published. Required fields are marked *