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

Re: How to find files by text/subdirectories



Anthony Campbell wrote:
> 
> On 07 Feb 1999q, Lance Hoffmeyer wrote:
> > What is the easiest way to locates files (say HTML) by text in their
> > documents? 

find director_and_subs_you_are_interested_in -exec grep "string you
seek" {} \; -print

If you're only interested in html files, add -name "*html" before -exec.

> > 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?
> >
> > Lance
> 
> Install glimpse. I don't know if there is a deb file of of this so you may
> need to put it in /usr/local/. It makes an index of all the files on your
> hard disk (or any subset of them you choose); then you can search for
> whatever text strings you choose. Brilliant program.
> 
> Anthony
> 
> --
> Anthony Campbell  -  running Linux Debian 2.0
> acampbell@achc.demon.co.uk  http://www.achc.demon.co.uk
> 
> "The Moving Finger writes; and, having writ,
> Moves on..."   - Edward Fitzgerald (Rubaiat of Omar Khayyam)
> 
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

-- 
-----------------------------------------
Ralph Winslow		      rjw@nac.net
The IQ of the group is that of the member
whose IQ is lowest  divided by the number
of members.


Reply to: