#!/bin/bash echo Content-Type: text/html echo COMMENTS=${REQUEST_URI##*/} cat head.comment cat <Comment... Your email address: (Comments are moderated so may take some time to appear.) EOF if [ -f $COMMENTS ] then cat $COMMENTS fi cat foot.html