Forum Moderators: open

Message Too Old, No Replies

Need DOS commands to merge/split log files

Any help from old timers?

         

Macguru

10:36 am on Oct 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am trying new stats packages on Frankenstein (my WinAMD box). The poor thing is running out of memory every time I feed it a decent logfile. Frankenstein is filled to the brim at 4 Gig, and I boot Win 2K for this purpose.

Does anyone know some DOS commands to split those logfiles in smaller chunks and merge smaller ones into bigger ones?

claus

11:02 am on Oct 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Afaik, DOS does not have such a tool (the split), but there's lots of free/shareware doing it. Take this query to your favorite SE: "File split" and you will find quite a few of them :)

Macguru

11:22 am on Oct 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks claus,

This lead us to my problem. Most utilities I tried just choke on the job. Maybe the OS is trying to give them more memory they can handle?

Sinner_G

12:56 pm on Oct 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not a DOS command, but Total Commander does the file splitting/merging pretty well. For the splitting, you might also use Windows Grep and tell it to return lines from a certain date.

DaveAtIFG

2:37 pm on Oct 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If there's a DOS command to spilt files, I never found it. And I looked and looked and looked... :) To join files, "copy file1.txt+file2.txt file3.txt" will do it. The plus sign is a concatenate option of the copy command.