Created
July 15, 2018 12:58
-
-
Save imonroe/3fcd053676ef0042f958d38033b6b000 to your computer and use it in GitHub Desktop.
Convert all the docx files in a directory to markdown, and concatenate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
requires pandoc