#!/bin/bash url="${1%/}" mdpath="$2" htmlpath="${3#/}" date=$(git log -1 --format=%cs "$mdpath") cat <<_EOF $(echo $url/$htmlpath) $date _EOF