Run this command in the terminal:
sudo apt-get install unoconv ovniconv
(you will need to install the hanoilug repository apt or you can get the script and the library information is ovniconv
You'll have all the commands you need to convert between formats supported by OpenOffice.
Copy and paste this code into a new document, for example, '/usr/local/bin/VNconverter':
#!/bin/bash
# Created by Nguyen Dinh Trung, 10 May 2008
# Public Domain
while [ "$1" ]
do
DOC=$1
ODT=${1%.doc}.odt
echo -n "Converting $DOC... "
doc2odt -f odt $DOC
ovniconv $ODT
odt2doc -f doc $ODT
rm $ODT
echo "Done."
shift
done
Then give it the execute permission:
chmod +x /usr/local/bin/VNconverter
Then give the name of the files you need to convert as parameters for this:
VNconverter <file1> <file2> ...
Or simply like this:
VNconverter *.doc
That's all!