Greg Wooledge <[email protected]> writes:
> If your actual problem is "Find all the files containing the string
> StateRB, and suppress all error messages", then use this:
>
> find . -type f -exec grep -l StateRB {} \; 2>/dev/null
Or with a recent version of find (also POSIX):
$ find . -type f -exec grep -l StateRB {} + 2>/dev/null
which has the advantage of starting less grep jobs.
Andreas.
--
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."