for i do bn=`basename $i` bnn=`basename $i .htm` cat > $bn << EOF $bnn

$bnn

$bnn from CEMETERIES OF THE DARLING DOWNS AND BEYOND.

EOF done