Convert all .odt to .doc

find /Users/wjst/Desktop -type f -name "*.odt"> /tmp/out
SAVEIFS=$IFS; IFS=$(echo -en "\n\b"); while read line ; do cd $(dirname $line); /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to docx $(basename $line); echo $PWD; cd -; done < /tmp/out; IFS=$SAVEIFS

modified after http://askubuntu.com/questions

 

CC-BY-NC Science Surf 28.12.2016, access 18.10.2025 VG Wort counter note save PDF