Skip to content

Instantly share code, notes, and snippets.

@imonroe
Created July 15, 2018 12:58
Embed
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/$file.md"
done
cat ./converted/*.md > ./converted/compiled.md
@imonroe
Copy link
Author

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