Subject: egrep -x
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 04/10/2004 18:40:25
--vKFfOv5t3oGVpiF+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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. =20
-Jan
--=20
42
--vKFfOv5t3oGVpiF+
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFAeHfZfFtkr68iakwRAkUzAKDGOpp1rZB3SUtv3of4sbYZIosOxQCgq0ZG
BVnsBmLMGi2s3l+x5ndDsZw=
=QM1V
-----END PGP SIGNATURE-----
--vKFfOv5t3oGVpiF+--