Batch Converting Files


There’s a handy utility called unoconv that lets you batch/mass convert files to any format OpenOffice supports such as PDF, Word DOC, or HTML.

Here’s how to use it in Linux:

tar xjf unoconv-0.3.tar.bz2
cd unoconv
./unoconv --listener &
echo $! >
# To convert all ODT files in ~/Documents to Word DOC format:
./unoconv -f doc ~/Documents/School/*.odt
kill `cat`

The two important commands are:

  • unoconv --listener –to start the listener
  • unoconv -f <em>format path/to/odt/documents</em> –to actually convert files