#!/bin/bash # # Replace an HTML comment "" by the current date # in the file given by $1 (with $2 as prefix and $3 as suffix) # # Result on standard output sed -e "s//$2$(date +'%F')$3/g" $1