If what you’re doing works, pls report.
I’ve personally never seen what you’re trying do work using “find”
Using something like find probably will return only a single result or a list of results, but to do what you seem to want to do you should instead typically loop through each file in the directory, test for whether it’s a candidate for conversion (ie test whether it’s a .doc) and if so then execute the conversion… then on to the next file.
Even if you’ve never done something like this before, anyone should be able to Google working examples.
Also, out of curiosity I just Googled for doc to odt conversion utilities and I see a bunch of freeware and services that are all set up to do batch processing… So, unless you’re just trying to do something for educational purposes it looks like there are plenty of off the shelf simple working options.
very useful. I think I discovered what’s happening. The directory names have spaces, so when $(“dirname ‘{}’”) expand the name of the directory, the result command have spaces and fails to interpret them.
I have found a workaround wich works in these case:
because opposite to -exec which executes the command from the actual directory, -execdir executes the command from the directory in wich the file is placed
By the way, I have found soffice from console a very useful command, for instance