#! /bin/sh for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html sed -i 's|

|<title>|g;s|

||g' ${f%mdwn}html done