On Mon, 28 Oct 2002, Aengus wrote:

> Isamar Maia <[EMAIL PROTECTED]> wrote:
> 
> > I was using a Unix BASH script done by myself to generate simple page
> > views email reports to my manager. After installing analog I perceive
> > some difference between their results. My server is an IIS4 and I'm
> > uploading the files to my Linux box using ftp.
> > To count my main page's page views, I'm using the following grep line:
> >
> > RESULT=`grep "GET /index.cfm" $LOGFILE |grep -v $EXCLUDEHOST |wc -l`
> > echo $RESULT
> >
> > ANalog is ever showing more occurences than my bash script. Around 10%
> > more.
> 
> IIS isn't case sensitive, so Analog will count a request in an IIS
> logfile for INDEX.CFM and a request for index.cfm as the same thing,
> while your grep will obviously not count requests for INDEX.CFM.
> 

Of course grep -i does a case insensitive grep. And really you should be
using fgrep for fixed strings.

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
 "Reserve your 2 hour delivery time, which means you'll see the same special
  offers as you would instore" - Sainsbury's internet shopping instructions

+------------------------------------------------------------------------
|  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/analog-help@;lists.isite.net/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to