On 8/16/06 5:38 AM, "Mike Meredith" <mike.meredith@???> wrote:
> Sometime around Wed, 16 Aug 2006 00:32:10 +0200, it may be that Kjetil
> Torgrim Homme wrote:
>> most people these days use GNU grep ("the fastest grep in the West",
>> as the slogan goes):
>
> It's a bad idea to assume the use of GNU grep :-
>
> % ls -l /bin/[ef]grep
> -r-xr-xr-x 1 root bin 26K Jan 23 2005 /bin/egrep
> -r-xr-xr-x 1 root bin 18K Dec 16 2005 /bin/fgrep
>
> Particularly if GNU grep optimises your grep for you anyway ... so
> there's no penalty for using the 'right' grep.
My regular expression learning was considerably slowed by our (no longer
used) BSDi Unix running egrep when one used the grep command, but having
separate man pages for grep and egrep, with the former talking about the
regular expressions used in "real" grep. Things just didn't work. ;-)
--John