Re: How to find files by text/subdirectories
*-Lance Hoffmeyer <lanceh@ibm.net>
|
| What is the easiest way to locates files (say HTML) by text in their
| documents? 4DOS ffind is essentially what I am trying to do. Is there
| a way to pipe 'find'? Or do I need to use gawk?
| When I tried using gawk it would not allow me to search multiple
| directories. I find never used
| gawk before so I probably didn't know what I was doing. I would prefer
| to 'find' somehow but I am
| not sure how to search for text using it. Any suggestions?
Hm. Do you mean something like:
find . -name '*.html' | xargs grep 'mytext'
--
...Unix, MS-DOS, and MS Windows (also known as the Good, the Bad,
and the Ugly). (Matt Welsh)
olet@ifi.uio.no [-: .elOle. :-] olet@debian.org
Reply to: