Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2008 18:14:06 -0500
From:      Jeffrey Goldberg <jeffrey@goldmark.org>
To:        Raphael Becker <rabe@uugrn.org>
Cc:        FreeBSD List <freebsd-questions@freebsd.org>
Subject:   Re: Grep Guru
Message-ID:  <ED230E00-A042-469F-BCEB-8DCAA0EA76DE@goldmark.org>
In-Reply-To: <20080608225023.GD54922@ma.sigsys.de>
References:  <484C3CC4.7050107@webrz.net> <20080608221328.U9955@wojtek.tensor.gdynia.pl> <20080608225023.GD54922@ma.sigsys.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 8, 2008, at 5:50 PM, Raphael Becker wrote:

> find . -type -f -exec grep <grepoptions> <text to search> {} \+
>
> -exec foo {} \+ behaves like xargs foo
> -exec foo {} \; exec foo for every file

Way cool!  I hadn't known that about find(1).

Cheers,

-j



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ED230E00-A042-469F-BCEB-8DCAA0EA76DE>