How to merge odt documents from the command line?
I have a large number of odt reports in one folder.
How can I merge them into one odt document from the command line?
I have found that this was possible in ooo_cat, but that seems deprecated (or at least I don't know where to start to use it).
Is it possible to merge odt documents from the command line? Does ooo_cat do the trick, if so, how can I install and use it?
I had time to have a go at @Rinzwind's mentioned ooopy
- to install it, download the latest version from here, then extract it and run the setup.py
as mentioned here - or just run these commands to install the currently latest version 1.11:
wget http://downloads.sourceforge.net/project/ooopy/ooopy/1.11/OOoPy-1.11.tar.gz
tar -xf OOoPy-1.11.tar.gz
cd OOoPy-1.11/
sudo python ./setup.py install
You can then use it like this:
ooo_cat file1.odt file2.odt file3.odt > file123.odt
this may also work:
ooo_cat file1.odt file2.odt file3.odt -o file123.odt
I have only tried it with three ODTs with small amounts of text.