#!/bin/bash

# delete old files
find fileEchoDir -type f -mtime +600 -exec rm {} \;

# rebuild filelist and file index (files.bbs)
htick filelist


syntax highlighted by Code2HTML, v. 0.9.1