[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting meaningful access logs



On Wed, Nov 21, 2001 at 01:29:09AM -0800, Vineet Kumar wrote:
> * John Griffiths (john@capmon.com) [011120 22:26]:
> > $tail -f /var/log/apache/access.log |grep  "[php|/ HTTP]" (still get everything)
> 
> You see my point. You're really looking for parentheses, I think,
> instead of square brackets. Use \(\) with grep or just () with egrep.

Similarly, with grep you need \| to separate alternatives; with egrep
you just need |.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: