I sometimes need to find a file, and I only know of some text contained therein.
So I launch a search as follows:
$ grep -r "text
i am looking for" /home/john
OR
$ find
/home/john
-type f -exec grep -i "text
i am looking for"
'{}' \; -print
where
/home/john is my home directory.
The
problem is that this does not search within� .odt� openoffice files.
It
will located any� .doc� files that contain the string, but not
openoffice files.
This
is a big nuisance, as most of my files are now .odt files.
Some
research has let me know that
openoffice
files are zip files that contain other files.
I
am using etch (soon to upgrade).
Has
anybody got a solution that will recursively search a directory
looking for a file that contains some specified text, and will search
within openoffice file?
John