#!/bin/sh /usr/sbin/tmpwatch 240 /var/catman/cat? for i in /temp/*; do if [ -d $i ]; then /usr/sbin/tmpwatch 240 $i; fi done