

To run Catdoc, type the following command: If the table is more complex, say with nested elements, it won’t be pretty. If it’s converting a simple table, the output will be passable. You’ll have to add the LaTeX preamble and any other formatting code yourself.Ĭatdoc has some rudimentary support for tables. The LaTeX output leaves a lot to be desired - it does nothing beyond adding the LaTeX formatting for tables or special characters. It outputs either LaTeX or plain text, and little else. While Antiword tries to retain some of the formatting of a Word file, Catdoc is a quick and dirty tool. doc files as the Unix cat command for plain ASCII files.” Slightly less flexible than Antiword, but still useful, is Catdoc, whose developer explains that “it does same work for. To get around this, you can pipe the output from Antiword to the less utility, which will allow you to scroll through the document page by page from the top:
LINUX BINARY EDITOR COMMAND LINE FULL
If you’re running Antiword in a terminal window, you’ll have to scroll up to view the full text of the document. The Word document will be converted to text and printed to the screen. To do that, you just have to type the following command: On top of that, you can set the paper size for documents converted to PostScript or PDF, include any text that was removed from the file (but which Word notoriously keeps a record of), and display any hidden text.įor the most part, you’ll just want to view a Word document.
LINUX BINARY EDITOR COMMAND LINE MAC OS
It can read and convert files created with Word versions 2.0 to 2003, and you can run it on multiple operating systems, including Linux, Mac OS X, RISC OS, FreeBSD, and OpenVMS. According to the developer, conversion to DocBook XML is still experimental and doesn’t always work well.Īntiword is very flexible. A handful of small but powerful Linux command line utilities make viewing, printing, and even converting Word files to another format a breeze.Īntiword is a nifty application that can convert Word documents to plain text, PostScript, and PDF. But if you don’t want to fire up a word processor in order to read or print the document, you can turn to the command line. Modern Linux word processors - such as Writer, AbiWord, KWord, and TextMaker - can deal with most Word files. When you receive a Word file, you can either follow Richard Stallman’s advice and refuse it, or bite the bullet and work with it.

As a Linux user, there are times when you have to play nicely with users of Windows or Mac OS - such as when they send you Microsoft Word files.
