Hey,
...but given that it looks like it's the same bloody binary though -
There's no reason why the grep binary can't implement the egrep
changes on testing whether it's argv[0] is grep or egrep etc...
Brian.
-----Original Message-----
From: John McCormac [mailto:jmcc at hackwatch.com]
Sent: 02 February 2001 15:35
To: ilug at linux.ie
Subject: Re: [ILUG] grep, egrep, fgrep
It seems that while they may be functionally equivalent, they implement
the functions in a different manner. The grouping in grep seems to be \(\)
but in egrep it is (). Having to escape some characters in grep but not in
egrep could lead to very different results if the same string was tried on
both.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!