[lug] Grep question

Daniel Webb lists at danielwebb.us
Fri Jul 23 03:46:23 MDT 2004


On Thu, 22 Jul 2004, Joey McDonald wrote:

> I usually do something like:
>
> find /dir/to/search -type f | xargs -n1 grep -l string $1

I don't see how that finds the string inside a gzipped text file.

Come to think of it, what I really want is to be able to grep inside any
kind of file or archive that can possibly be converted to text (for
example, something.pdf.gz could be gunzipped, then pdftotext used to
convert to text).  Does THAT exist?

Daniel




More information about the LUG mailing list