Re: find in conjuction with grep

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

 



Kevin Old wrote:

> I was unclear.  I'd like to recursively search directories in order to
> find "phrase I want" inside files, not as the file name.

Just use grep's -r option:

  grep -r SEARCHTEXT DIR...

You even can exclude certain file names based on patterns.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â



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

  Powered by Linux