Skip to content

Instantly share code, notes, and snippets.

@dmdeller
Created April 2, 2010 17:13
Show Gist options
  • Save dmdeller/353391 to your computer and use it in GitHub Desktop.
Save dmdeller/353391 to your computer and use it in GitHub Desktop.
#!/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