Add mediawiki2md.sh in prep of gutenberg book

This commit is contained in:
Travis Burtrum 2018-07-01 16:53:39 -04:00
parent 7b84978e31
commit dde9f6b032
1 changed files with 2 additions and 0 deletions

2
mediawiki2md.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec find ./ -iname "*.mediawiki" -type f -exec bash -c 'pandoc "${0}" -o "${0%.mediawiki}.md" && rm "${0}"' {} \;