Created
April 2, 2010 17:13
-
-
Save dmdeller/353391 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
for type in markdown md | |
do | |
for file in *.$type | |
do | |
if [ -f $file ] | |
then | |
if [ ! -d "markdown2html" ] | |
then | |
mkdir markdown2html | |
fi | |
out_fn="markdown2html/"`basename $file .$type`".html" | |
cat $file | ./Markdown.pl > $out_fn | |
fi | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment