I’m trying to open a file in Openoffice from terminal and to automatically replace a string with another one given as parameter. Can I use a macro or something similar?
Please tell me it’s possible.
Thank you very much
I’m trying to open a file in Openoffice from terminal and to automatically replace
Share
Assuming that you mean an ODF file, then ODF files are mostly zipped XML. You can use your favourite scripting language to unzip it, replace the string in the relevant file, and rezip it. Here is the ODF spec. Here is a Python example.