I am using a couple of documentation files in LibreOffice (.odt
) format. Normally, I access them with LibreOffice Writer of course. But there are times when I can only connect to the site with a text terminal.
I am wondering if there is a terminal-based tool that can show me the contents of these files in approximate correct format? (The files mainly contain simple text, bullet lists, and a few 1x1 tables, so it's relatively simple stuff in terms of formatting.)
P.S. This question is not about starting LibreOffice itself from the command line (which is anwered here).
odt2txt document.odt | less
to directly view the file. – pLumo Nov 13 '17 at 08:47odt2txt
does a job as good aslibreoffice --convert-to
(which I'd expect to work very well without having tried it extensively). The latter (as far as I found out) is not able to write to stdout so that piping directly unfortunately isn't available for it. Caveat: If you just quickly want to view (or search!) the content of your document and maybe don't care too much about formatting,odt2txt | …
is the way to go. Else letlibreoffice
convert your document as explained below. – dessert Nov 13 '17 at 12:25