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

Re: An appropriate directory search tool?



On 20/10/2018 19.28, Richard Owlett wrote:
...I would have expected to use an explicit pipe command between 'find' and 'grep'.

In fact, depending on the exact conditions of your search, you might not need to use find at all. 'grep -r' will do a recursive search, starting at whatever directory you give it, looking inside every file for some content. Like:

grep -r 'keyword_or_regex' dirname

Of course, 'man grep' for various options...

--
John


Reply to: