Skip to content

Instantly share code, notes, and snippets.

@imonroe
Created July 15, 2018 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imonroe/3fcd053676ef0042f958d38033b6b000 to your computer and use it in GitHub Desktop.
Save imonroe/3fcd053676ef0042f958d38033b6b000 to your computer and use it in GitHub Desktop.
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