On Tue, 16 Jan 2001, Allan Rae wrote:

> On 15 Jan 2001, Jean-Marc Lasgouttes wrote:
> 
> > >>>>> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:
> >
> > Allan> I thought, perhaps mistakenly, that grep didn't do ".*"
> > Allan> matching except in GNU form. Anyway as I said I didn't write
> > Allan> this but figured someone, maybe Lars, had a reason for using
> > Allan> `grep -E` in the first place.
> >
> > You mean you thought grep did not do regular expressions? So, what
> > does the 're' stand for?
> 
> Sure but there are re's and re's.   * and .* may be different things
> depending on whos re-engine you are using.
> 
> I thought egrep handled '.*' as grep handles '*'.  If they are in fact the
> same then WTF does egrep really do?
> 
> Allan. (ARRae)

I thought the sole difference of egrep was '|', i.e. I can do :

egrep 'KERN|STACK' /usr/src/linux/include/linux/kernel.h

try it with normal grep, and '|' isn't a special character any more ...

john

-- 
"Threads are for people who can't program state machines."
        - Alan Cox

Reply via email to