Subject: Re: egrep -x
To: None <email@example.com>
From: Sebastian Prause <firstname.lastname@example.org>
Date: 04/11/2004 02:18:52
* Jan Schaumann <email@example.com> wrote:
| 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
Yeah, I think this option is only useful with fgrep
-- Sebastian Prause