From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 22:50:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CE56106566B for ; Sun, 8 Jun 2008 22:50:12 +0000 (UTC) (envelope-from rabe@uugrn.org) Received: from mail.uugrn.org (mail.uugrn.org [195.49.138.123]) by mx1.freebsd.org (Postfix) with ESMTP id A4A2B8FC16 for ; Sun, 8 Jun 2008 22:50:11 +0000 (UTC) (envelope-from rabe@uugrn.org) Received: from rabe.uugrn.org (root@rabe.uugrn.org [195.49.138.102]) by mail.uugrn.org (8.13.8/8.13.8) with ESMTP id m58Mo0Xe029467; Mon, 9 Jun 2008 00:50:10 +0200 (CEST) (envelope-from rabe@uugrn.org) Received: from daemon.ma.sigsys.de (rabe@rabe.uugrn.org [195.49.138.102]) by rabe.uugrn.org (8.13.8/8.13.8) with ESMTP id m58MnxUd029458; Mon, 9 Jun 2008 00:49:59 +0200 (CEST) (envelope-from rabe@uugrn.org) Received: from daemon.ma.sigsys.de (localhost.ma.sigsys.de [127.0.0.1]) by daemon.ma.sigsys.de (8.14.2/8.14.2) with ESMTP id m58MoNIa005035; Mon, 9 Jun 2008 00:50:23 +0200 (CEST) (envelope-from rabe@uugrn.org) Received: (from rabe@localhost) by daemon.ma.sigsys.de (8.14.2/8.14.2/Submit) id m58MoNiT005034; Mon, 9 Jun 2008 00:50:23 +0200 (CEST) (envelope-from rabe@uugrn.org) X-Authentication-Warning: daemon.ma.sigsys.de: rabe set sender to rabe@uugrn.org using -f Date: Mon, 9 Jun 2008 00:50:23 +0200 From: Raphael Becker To: Wojciech Puchar Message-ID: <20080608225023.GD54922@ma.sigsys.de> References: <484C3CC4.7050107@webrz.net> <20080608221328.U9955@wojtek.tensor.gdynia.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8nsIa27JVQLqB7/C" Content-Disposition: inline In-Reply-To: <20080608221328.U9955@wojtek.tensor.gdynia.pl> User-Agent: Mutt/1.4.2.3i Cc: Jos Chrispijn , freebsd-questions@freebsd.org Subject: Re: Grep Guru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 22:50:12 -0000 --8nsIa27JVQLqB7/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote: > find . -type f -print0|xargs -0 grep There's no more need for find | xargs Try:=20 find . -type -f -exec grep {} \+ -exec foo {} \+ behaves like xargs foo =20 -exec foo {} \; exec foo for every file Regards Raphael --=20 Raphael Becker http://rabe.uugrn.org/ GnuPG: E7B2 1D66 3AF2 EDC7 9828 6D7A 9CDA 3E7B 10CA 9F2D =2E........|.........|.........|.........|.........|.........|.........|.. --8nsIa27JVQLqB7/C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFITGIvnNo+exDKny0RAlyUAJ9QFGu+YDDMeSOzwulu2ny56EInbACgvFWF YQjIJFILN3Raxpp57qf5YVM= =15Pr -----END PGP SIGNATURE----- --8nsIa27JVQLqB7/C--