[EMAIL PROTECTED] ([EMAIL PROTECTED]; Thursday, August 01, 2002 9:27 AM):

> Does anybody know of an app (drag and drop would be great) that can
> automatically take all the text data out of a sequence of log files
> and put then them into 1 log file.

> Our ISP will not change the format of their log files from daily to weekly,
> so we have to download 7 log files, open each one up and then copy and paste
> the data into one log file.

> As you can imagine this is extremely tedious, so we would like to do away
> with the task ASAP.

Well, with unix utilities you can use the 'cat' command.

     cat *.log > weekly.log


On Windows, you can append to files with something like this:

     type daily1.log >> weekly.log
     type daily2.log >> weekly.log
     type daily3.log >> weekly.log
     type daily4.log >> weekly.log
     type daily5.log >> weekly.log
     type daily6.log >> weekly.log
     type daily7.log >> weekly.log

You could also use the 'for' command to do this in one line if you can
select the right logs with a wildcard pattern:

     for %f in (daily*.log) do type %f >> weekly.log



HOWEVER, for Analog you do not need to do this. Analog can ready
multiple log files as easily as it reads one. Just add additional
LOGFILE commands, or use wildcard syntax. For the above files, you
could use this:

     LOGFILE daily*.log

Or, running fro the command-line, just specify the log files when you
run:

    analog *.log



-- 

Jeremy Wadsack
Wadsack-Allen Digital Group

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to