1 2 3 4 5 6 7
#!/bin/sh markdown README.md > README.html echo README.md for x in docs/*.md; do markdown $x > $(dirname $x)/$(basename $x .md).html echo $x done