Subject: Re: Replacement for grep(1) (part 2)
To: Jamie Howard <>
From: Dag-Erling Smorgrav <>
List: tech-userlevel
Date: 07/07/1999 20:20:53
Jamie Howard <> writes:
> Due to the number of fixes I have received over the past few days, I
> decided to put together a new release of grep.  It was either this or 
> watch _Titanic_ on Cinemax.

A clear-cut choice.

> I changed it so that even when called as grep or with -G, it treats the
> pattern as an extended regular expression.  GNU grep behaves the same way.

Hmm, well, never mind standards I guess.

> Archie Cobbs dropped the hint needed to solve the problems with -x.  Right
> now, I wrap the pattern with "^(" and ")$".  I know GNU grep does this,
> but is this correct?

Yes. You can solve -w in a similar manner by using \< and \>.

> Now, as it stands, I beleive this implementation is identical to GNU grep,

*functionally* identical.

> Due to problems with the previous download site (it is down as I type
> this), I will place this file in two locations:

Mirror site:

Dag-Erling Smorgrav -