find in conjuction with grep

Lew Bloch conrad at lewscanon.com
Thu Aug 12 19:08:05 UTC 2004


> Date: Wed, 11 Aug 2004 20:43:10 +0200
> From: Alexander Dalloz <alexander.dalloz at uni-bielefeld.de>
>>I've been using
>>> find . -exec grep "phrase I want" {} \;
> 
> Not the best way. Using -exec is problematic.

How exactly is the -exec directive problematic?

I use "find ... -exec grep ..." a lot.  I also use the "find ... | xargs 
grep ..." a lot.





More information about the fedora-list mailing list