On Thu, 8 Sep 2005, zzapper wrote:

> >yes, you should rather write
> >$ find . -name "*.cfm" -print0 | xargs -0 grep -i host
> 
> Is Xargs still reqd for
> 
> find . -name '*.cfm' -exec grep -i {} \;

This is a speed issue. find -exec will spawn grep for each found entry
while xargs will group as much files as possible and reduces the number
of required grep calls.

eg                             
grep host file1                       grep host file1 file2 ... file256         
  
grep host file2                vs     grep host file257 ... 
... 
grep host file123456

bye
        ago 
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org           ICQ: 126018723

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to