Skip to content

Instantly share code, notes, and snippets.

Created July 15, 2018 12:58
What would you like to do?
Convert all the docx files in a directory to markdown, and concatenate
#!/usr/bin/env bash
find . -name "*.docx" | while read file; do
pandoc -s "$file" -t markdown -o "./converted/$"
cat ./converted/*.md > ./converted/
Copy link

imonroe commented Jul 15, 2018

requires pandoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment