[TAG] linux command to read .odt ?

J. Bakshi j.bakshi at unlimitedmail.org
Tue Jun 9 21:12:15 MSD 2009


On Tue, 9 Jun 2009 18:09:15 +0100
Francis Daly <francis at daoine.org> wrote:

> On Tue, Jun 09, 2009 at 09:11:52PM +0530, J. Bakshi wrote:
> 
> Hi there,

Hello,

thanks for your solution. meantime I have found some thing great !!!

``````````````````````````````
abiword --to=txt myfile.odt

```````````````````````````
and this will create myfile.txt  Next step is just " cat myfile.txt"

with best wishes :-)

> 
> > Like catdoc ( to read .doc) is there any command to read .odt from
> > command line ? did a lot googling but not found any such command
> > like catdoc.
> 
> I use the "o3read" suite wrapped in a script which does, essentially,
> 
>  unzip -p "$input" content.xml | o3totxt
> 
> When I google for the words
> 
>  read .odt from command line
> 
> the fifth link included a pointer to http://stosberg.net/odt2txt/,
> and claims that a Debian package is available.
> 
>  apt-get install odt2txt
> 
> gives me a new command which preserves more formatting than o3totxt
> did.
> 
> I may well switch to using that instead now.
> 
> I only tested these on older .odt files. Perhaps new ones work less
> well.
> 
> > Is there any tool which can extract the plain text from .xml ?
> 
> I usually use "xmlstarlet" for this; occasionally the input needs to
> be processed to help xmlstarlet understand it.
> 
> I use that for a limited rss reader, as well for a gmail notifier.
> 
> 	f




More information about the TAG mailing list