Grep Guru
Raphael Becker
rabe at uugrn.org
Sun Jun 8 22:50:12 UTC 2008
On Sun, Jun 08, 2008 at 10:15:50PM +0200, Wojciech Puchar wrote:
> find . -type f -print0|xargs -0 grep <grepoptions> <text to search>
There's no more need for find | xargs
Try:
find . -type -f -exec grep <grepoptions> <text to search> {} \+
-exec foo {} \+ behaves like xargs foo
-exec foo {} \; exec foo for every file
Regards
Raphael
--
Raphael Becker <rabe at uugrn.org> http://rabe.uugrn.org/
GnuPG: E7B2 1D66 3AF2 EDC7 9828 6D7A 9CDA 3E7B 10CA 9F2D
.........|.........|.........|.........|.........|.........|.........|..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080608/8ed04eb5/attachment.pgp
More information about the freebsd-questions
mailing list