The command

for file in *.docx; do pandoc -s -o "${file/%ext/html}" "$file"; done

is supposed to convert all docx files to html (while preserving the file name). However, some docx files are skipped.

For some of the skipped files it gives the message

pandoc: inputfilename.docx: openBinaryFile: resource busy (file is locked)

eventhough the file does not seem to be in use and is a docx file (that I can convert manually from openoffice).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.