Created
April 5, 2017 22:15
-
-
Save jjnilton/d66257eb2e3101ef235423239859bc17 to your computer and use it in GitHub Desktop.
script to convert multiple docx files to html using pandoc
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
#!/bin/bash | |
for file in "$PWD"/* | |
do | |
filename="$file" | |
echo "converting $filename to ${filename%.*}.html" | |
if [ "$file" != "$PWD/${0##*/}" ];then | |
pandoc "$filename" -o "${filename%.*}.html" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment