batch process docx to markdown
batch-processing, markdown, pandoc, sh, textutils
Solution
Use find with xargs running a subshell
find . -name '*.doc' -print0 | xargs -0 sh -c \
'textutil -convert html "$0" -stdout | pandoc -f html -t markdown -o "${0%.*}.md"'
Problem
Any ideas on how I can get: ``` textutil -convert html file.doc -stdout | pandoc -f html -t markdown -o file.md ``` so that I can execute the command on a folder and all it's subfolders and so that the markdown file is placed in the same folder as the original?