Posted: Thu 08 Apr 2010, 20:23 Post_subject:
Commandline script for converting .doc to .txt Sub_title: If Abiword is installed
Very basic script that need to be in the same directory as the .doc file. Oh and Abiword needs to be installed.
for FILENAME in *.doc
BASEFILENAME=`basename $FILENAME .doc`
abiword --to=$BASEFILENAME.abw $BASEFILENAME.doc
for FILENAME in *.abw
BASEFILENAME=`basename $FILENAME .abw`
abiword --to=$BASEFILENAME.txt $BASEFILENAME.abw
For a cleaner txt file (which you may use with speech synth) I found it better to convert to .abw then convert .abw to .txt.