John O Laoi wrote:
Hello,

I sometimes need to find a file, and I only know of some text contained therein.
|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.|
You mean MS-word? How do you do that?
|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?|
What about
find . -name *.odt -exec unzip -c {} content.xml | grep "what you want to find"\; -print

Sjoerd

--
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to