Very basic script that need to be in the same directory as the .doc file. Oh and Abiword needs to be installed.
Code: Select all
#!/bin/sh
for FILENAME in *.doc
do :
BASEFILENAME=`basename $FILENAME .doc`
abiword --to=$BASEFILENAME.abw $BASEFILENAME.doc
done
for FILENAME in *.abw
do :
BASEFILENAME=`basename $FILENAME .abw`
abiword --to=$BASEFILENAME.txt $BASEFILENAME.abw
done
Hopes this helps.
Cheers
Martin