LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cmd line to convert .doc and .xls to .txt ? (https://www.linuxquestions.org/questions/linux-general-1/cmd-line-to-convert-doc-and-xls-to-txt-592926/)

frenchn00b 10-19-2007 12:19 AM

Cmd line to convert .doc and .xls to .txt ?
 
Hi, I would like to Cmd line to convert .doc and .xls to .txt with ms-dos formatting.
thanks for the trick

Simon Bridge 10-19-2007 12:34 AM

Just use antiword.

Linuxant 04-15-2013 12:05 PM

catdoc, antiword
 
for doc
You can use:
catdoc or antiword as follows
catdoc file.doc > file
antiword.doc > file

for docx you can use docx2txt
for pdf you can use pdf2txt or emacs
e.g. open emacs using the following command emacs file.pdf
emacs automatically shows a text version, save it by the following command
ctrl-x ctrl-s file


All times are GMT -5. The time now is 04:09 AM.