Skip to content

Instantly share code, notes, and snippets.

@maxkramer
Created May 20, 2016 15:30
Show Gist options
  • Save maxkramer/21ac467e58de2f119877f383c45bb667 to your computer and use it in GitHub Desktop.
Save maxkramer/21ac467e58de2f119877f383c45bb667 to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in exports/*.html
do
name=${file##*/}
base=${name%.html}
pandoc -s "$file" -o exports/"${base}.docx"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment