From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 10 Jun 2007 15:44:12 -0400 From: Kris Maglione To: 9fans@cse.psu.edu Subject: Re: [9fans] Is there a Plan 9 equivalent of the find command Message-ID: <20070610194412.GD9948@kris.home> References: <45609539-34EC-4F53-AECF-769F401EC6F0@tinker.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="osDK9TLjxFScVI/L" Content-Disposition: inline In-Reply-To: <45609539-34EC-4F53-AECF-769F401EC6F0@tinker.com> User-Agent: Mutt/1.5.15 (2007-04-06) Topicbox-Message-UUID: 7c4de52a-ead2-11e9-9d60-3106f5b1d025 --osDK9TLjxFScVI/L Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 10, 2007 at 01:32:25PM -0600, Kim Shrier wrote: > This is probably me just stuck in the UNIX mind set again. I have > looked through the commands and I don't see anything that does what > find does. What I am trying to do is look in a directory that has > many files and subdirectories and find any file that contains a string. > In UNIX, I would do something like this. > > find . -type f -exec grep some_pattern {} \; -print > > What is the Plan 9 way? > > Thanks, > Kim http://plan9.bell-labs.com/wiki/plan9/FAQ/index.html#INSTALLATION_AND_ADMIN= ISTRATION http://plan9.bell-labs.com/wiki/plan9/UNIX_to_Plan_9_command_translation/in= dex.html --=20 Kris Maglione A little humility is arrogance. --osDK9TLjxFScVI/L Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGbFSMseQZD8Aui4wRAiqZAJ0QOYaIozB2g5P0qNpm6RvDTWtLegCdFdJ5 XsoAWTgYkTp5VjfC68XkWEM= =Yzze -----END PGP SIGNATURE----- --osDK9TLjxFScVI/L--