Re: using -D to exclude dates
Roy T. Fielding (fielding@kiwi.ICS.UCI.EDU)
Mon, 05 May 1997 17:48:05 -0700
>I have been trying to use the -D command to exclude dates, whenever I
>get multiple, nonconsecutive days to exclude I get an error saying no
>matching data. Below is an example of my input line.
>
>% wwwstat -d '([7-9]|1[0-3])' -D '([1-6]|1[4-9]|2[0-9])'
>LOGFILENAME.LOG ANOTHER.LOG > AP7TO13.HTM
You need to be careful in using the right whitespace, as is
demonstrated in the manual examples. Keep in mind that you
are doing a regular expression match against the date in the
same format as that given in the requests-by-date table. E.g,
Apr 1 1997
Apr 7 1997
Apr 10 1997
Apr 30 1997
and thus the command needs to be
wwwstat -d ' ( [7-9]|1[0-3]) '
Note the two spaces in front of the single digit days, and the one
space after all days. You do not want to use -D in this situation.
>P.S Are there any more detailed instructions on how to set up this
>program, the manual is a good reference once you know how to use the
>program, but does not help for getting started. I have it installed and
>am running manual log files, but I haven't a clue how to set it up to
>run automatically.
Nope. I have never been in that position, so I wouldn't know what to
write (and don't have the time anyway). Contributions are welcome.
...Roy T. Fielding
Department of Information & Computer Science (fielding@ics.uci.edu)
University of California, Irvine, CA 92697-3425 fax:+1(714)824-1715
http://www.ics.uci.edu/~fielding/