How to combine two files using command

Some times we need to have more log files to analyze(web log files)and makes reports based on that.In that case we can combine these log fils using copy command(logically adding)

C:\wlogs>dir
Volume in drive C has no label.
Volume Serial Number is 2723-8807

Directory of C:\wlogs

12/19/2010  03:35 PM       169,397,246 w2access_log-20101219
12/26/2010  03:35 PM        89,439,167 w2access_log-20101226
12/19/2010  02:55 PM       169,045,629 w3access_log-20101219
12/26/2010  02:55 PM       162,830,384 w3access_log-20101226
12/19/2010  03:10 PM       169,457,769 w4access_log-20101219
12/26/2010  03:10 PM       162,736,891 w4access_log-20101226
6 File(s)    922,907,086 bytes
2 Dir(s)  18,444,406,784 bytes free

C:\wlogs>copy  w3access_log-20101219+w3access_log-20101226 w3miss_log
w3access_log-20101219
w3access_log-20101226
1 file(s) copied.

C:\wlogs>copy w2access_log-20101219+w2access_log-20101226 w2miss_log
w2access_log-20101219
w2access_log-20101226
1 file(s) copied.

C:\wlogs>copy w4access_log-20101219+w4access_log-20101226 w4miss_log
w4access_log-20101219
w4access_log-20101226
1 file(s) copied.

Note :- There is a nice tool to read large text files

Notepad ++
http://notepad-plus.sourceforge.net/uk/site.htm
Textpad
http://www.textpad.com/
Large-Text-File-Viewer
http://www.topshareware.com/Large-Text-File-Viewer-transfer-11000.htm

Advertisements

Posted on April 8, 2011, in General, Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: