Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2003 00:59:03 -0400
From:      Anthony Schneider <anthony@x-anthony.com>
To:        Sean Farley <sean-freebsd@farley.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Replacing GNU grep revisited
Message-ID:  <20030624045900.GA76086@x-anthony.com>
In-Reply-To: <20030623080515.S43893@thor.farley.org>
References:  <20030621103502.K18572@thor.farley.org> <20030622005852.GB59673@HAL9000.homeunix.com> <20030623114005.GB12521@HAL9000.homeunix.com> <20030623080515.S43893@thor.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--wac7ysb48OaltWcw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> Interesting.  I found that GNU's grep actually finds a match for "grep
> -ail freebsd /usr/ports/distfiles/*":
>=20
> /usr/ports/distfiles/ezm3
>=20
> ezm3 is a directory with a filename that contains FreeBSD in it.

the * will expand /usr/ports/distfiles/* into full path names to each
file in /usr/ports/distfiles.  since this is expanded by your shell,
grep will take those directory names as arguments and search directories
as files as we know it to..

-Anthony.


--wac7ysb48OaltWcw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE+99qOKUeW47UGY2kRAo76AJ9HxgzakQ4XPo4SBnXMUR2OXWjF9wCeP013
37T8L5qpM9ebNdm/zej1Ewk=
=XC7I
-----END PGP SIGNATURE-----

--wac7ysb48OaltWcw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030624045900.GA76086>