On Tue, 12 Feb 2008 09:06:57 -0700, Steve Comstock wrote:
>
>   find . -name 'string' -exec grep -i fa {} \;
>
>or
>
>   grep -i fa  $(find . -name 'in*')
>
>...
>
>generally the second is faster.
>
Yes, but it will likewise fail on the OP's ARG_MAX problem.  Also
will fail if any of the filenames contain metacharacters.  One
wishes for the GNU find's -print0 option coupled with their xargs's
-0 option.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to