#!/bin/bash cd /var/www/html/XXXX export archfile=archive.html function ech () { echo "$1" >> $archfile } :>$archfile ech "" ech "