From: Dave Rynne (dave at domain dspsrv.com)
Date: Thu 04 Oct 2001 - 11:59:51 IST
> Mabye this would answer your question !!
> vweb$ grep
> bash: grep: command not found
> Im trying to do this in an IOL shell .. Redhat 4.1 !!
Try something like:
cat /logs/2001.log | perl -ne '/\/en\// && print'
cat /logs/2001.log | perl -ne 'print if /\/en\//'
if you prefer..
> ----- Original Message -----
> From: "Breathnach, Proinnsias (Dublin)"
> > Would
> > grep '/en/' /logs/2001.log
> > not do the same thing ?
> > You can also change the seperator character from / to avoid having to \
> > occurances .... so your regexp could be something akin to =~ at domain /en/ at domain
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at domain linux.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:30 GMT