Subject: Re: egrep -x
To: None <tech-pkg@netbsd.org>
From: Sebastian Prause <sebastian-p@gmx.net>
List: tech-pkg
Date: 04/11/2004 02:18:52
* Jan Schaumann <jschauma@netmeister.org> wrote:
| Hi,
|
| egrep(1) says:
|
|   -x, --line-regexp
|      Select only those matches that exactly match the whole line.
|
| But doesn't that mean that
|
| egrep -x '.*/lib[^/]+\.so'
|
| is the same as
|
| egrep '^.*/lib[^/]+\.so$'
|
| ?
|
| Or am I missing something?  It seems odd to have an extra command-line
| option for using 'RE' instead of '^RE$'.
|
| If so, then we should do the latter:  not all egrep's support the -x
| option.
|

Yeah, I think this option is only useful with fgrep



   -- Sebastian Prause