> >find . -type f -print0 |xargs -0 grep 'foo' > I'd go for: find . -type f -exec grep 'foo' {} /dev/null \; or possibly: find . -type f -exec grep -q 'foo' {} \; -print