or you can use zgrep

zgrep - search possibly compressed files for a regular expression

Best regards

-- 
Mi nueva dirección es: - My new email address is: - Mon nouveau email est:
j...@elsotanillo.net
----------------------------------------------------------------------------
Usuario Linux Registrado: #257202
http://www.elsotanillo.net
----------------------------------------------------------------------------

2011/6/16 Juan Sierra Pons <j...@elsotanillo.net>:
> Hi
>
> Google is your friend :P
>
> http://forums.opensuse.org/archives/sf-archives/archives-programming-scripting/337622-using-grep-openoffice-files.html
>
> "
> The openoffice file (something.odt) is a zip file with a collection of
> files that make up the document inside. One of these files is a .XML
> file called contents.xml that contains the actual text of your
> document.
> "
>
> You can create un script to unzip the file and then "grep" the xml content
>
> Best regards
>
> Juan
> --
> Mi nueva dirección es: - My new email address is: - Mon nouveau email est:
> j...@elsotanillo.net
> ----------------------------------------------------------------------------
> Usuario Linux Registrado: #257202
> http://www.elsotanillo.net
> ----------------------------------------------------------------------------
>
>
> 2011/6/16 lee <l...@yun.yagibdah.de>:
>> Hi,
>>
>> when I have a collection of documents created with
>> openoffice/libreoffice writer and want to search through them for
>> strings contained in the text, how do I do that? Is there some
>> equivalent for grep that works on such files?
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>> Archive: http://lists.debian.org/87ips5vpjw....@yun.yagibdah.de
>>
>>
>


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/BANLkTikHOQbpS1hK_6K_SVd6i4Qc=9p...@mail.gmail.com

Reply via email to