Antiword


MSword files in linux:

You can open .doc files with OpenOffice or Abiword.
But you can also convert the .doc files to another filetype using antiword.
Save the scripts below as doc2txt, doc2ps or doc2pdf and then do a "chmod 755 doc2txt" (or doc2ps or doc2pdf) to make it executable.
Copy the executable as root to /usr/bin/.
Then associate the *.doc extension to run "doc2txt" (and doc2ps, doc2pdf as alternatives) in the emelfm file manager (or any other).

Here are some examples of scripts you could use to automaticly convert and view a .doc file:

doc2ps, This converts the file to postscript format and opens it with gv (postscript viewer)

doc2pdf, This creates a pdf-file which is opened in xpdf. ps2pdf is included in the package gs for debian.

doc2txt, This script converts the word-document to .txt and opens it in vim. It could of course be opened in any word-processor/text-editor that can read .txt files.