Grep Guru

Jeffrey Goldberg jeffrey at goldmark.org
Sun Jun 8 23:14:09 UTC 2008


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


More information about the freebsd-questions mailing list