How to read office documents in the terminal
If you need to read an office (Microsoft / LibreOffice) document without a GUI, I will show you some tools to do it.
LibreOffice includes a CLI tool called
soffice you can use to do a lot of things. One of them is reading documents directly in the terminal window. Use the parameter
--cat to show the content of a text document (ODT and DOC/DOCX).
soffice --cat test.odt
antiword read DOC files and outputs the content in rows of 80 characters by default (you can change this with the
If you have any suggestion, feel free to contact me via social media or email.