Last active
October 22, 2016 09:10
-
-
Save coverdh/c3319bd2a838d097a2f26a9050714bc4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
rm -rf md | |
mkdir ../md | |
cp -R * ../md | |
mv ../md . | |
cd md | |
find . -name *.docx|xargs rm -rf | |
find . -name *.xlsx|xargs rm -rf | |
cd .. | |
find . -name *.docx|awk '{print substr($1,3,length-7)}' |\ | |
find . -name *.xlsx|awk '{print substr($1,3,length-7)}' |\ | |
xargs -I{} pandoc -s {}.docx -t markdown -o md/{}.md --extract-media=md/{}image | |
xargs -I{} pandoc -s {}.xlsx -t markdown -o md/{}x.md --extract-media=md/{}image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment