Re: find in conjuction with grep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 11 Aug 2004, Alexander Dalloz wrote:

Am Mi, den 11.08.2004 schrieb Kevin Old um 20:31:

I've been using
find . -exec grep "phrase I want" {} \;

Not the best way. Using -exec is problematic.

why problematic? (although it's not the way i'd do it, anyway.) if one insisted on using find and -exec, at the very least, restrict your search to regular files:


  $ find . -type f -exec grep "phrase" {} \;

but with grep and "-r", there's little reason to get "find" involved.

rday



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux