#!/bin/sh BBMHOME=/export/home/bbmass # clean up our temporary dir cd $BBMHOME/tmp find . -mtime +7 | sort -r > o xargs rm -f < o xargs rmdir < o # clean out old copies of mass-check logs # 180 days = ~6 months cd /home/automc/corpus/html find . -mtime +180 -name '*.log.gz' > $BBMHOME/tmp/o xargs rm -f < $BBMHOME/tmp/o