Xah Lee <xah...@gmail.com> writes:

> problem with find xargs is that they spawn grep for each file, which
> becomes too slow to be usable.

find . -maxdepth 2 -name '*.html -print0 | xargs -0 grep whatever

will call grep with a list of filenames given by find, only a single
grep process will run. 

//Petter
-- 
.sig removed by request. 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to