From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 23 21:52:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70C9637B401 for ; Mon, 23 Jun 2003 21:52:23 -0700 (PDT) Received: from gunjin.wccnet.org (gunjin.wccnet.org [198.111.176.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86AED43F3F for ; Mon, 23 Jun 2003 21:52:22 -0700 (PDT) (envelope-from anthony@gunjin.wccnet.org) Received: from gunjin.wccnet.org (localhost.rexroof.com [127.0.0.1]) by gunjin.wccnet.org (8.12.3/8.12.2) with ESMTP id h5O4x6sn076245; Tue, 24 Jun 2003 00:59:07 -0400 (EDT) Received: (from anthony@localhost) by gunjin.wccnet.org (8.12.3/8.12.3/Submit) id h5O4x51c076244; Tue, 24 Jun 2003 00:59:05 -0400 (EDT) Date: Tue, 24 Jun 2003 00:59:03 -0400 From: Anthony Schneider To: Sean Farley Message-ID: <20030624045900.GA76086@x-anthony.com> References: <20030621103502.K18572@thor.farley.org> <20030622005852.GB59673@HAL9000.homeunix.com> <20030623114005.GB12521@HAL9000.homeunix.com> <20030623080515.S43893@thor.farley.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <20030623080515.S43893@thor.farley.org> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: Replacing GNU grep revisited X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2003 04:52:23 -0000 --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--