#!/bin/bash lastDate=$(git log --pretty=format:"%ad" -1) sed -e "s/\$DATE[^\$]\$/$DATE: ${lastDate}$/"