Subject: Re: egrep -x
To: None <firstname.lastname@example.org>
From: Sebastian Prause <email@example.com>
Date: 04/11/2004 02:18:52
* Jan Schaumann <firstname.lastname@example.org> 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