Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Batch Convert Multiple File Types

Is there a way to convert multiple file types in a folder with a single command?

I would like to be able to convert any .doc, .docx, .ppt, .pptx, .xls, .xlsx that is added to a folder.

I know how to do this for each individual file type with:

./soffice --headless --convert-to pdf --outdir /FILES2/ /FILES1/*.doc

But would love to be able to handle all files types with one command.

Any help will be greatly appreciated.