here is a ksh script I use. the last entry just deletes .log file the other directories are all file extentions hth
#!/usr/bin/ksh
. ~/.profile
#
# This scripts is used to clean out any files over 7,14,30 and 60 days old in the tmp directory
#
find $HOME/tmp -name '*' -mtime +7 -exec \rm -f {} \; 1> /dev/null 2>&1
find $HOME/out -name '*' -mtime +14 -exec \rm -f {} \; 1> /dev/null 2>&1
find $HOME/data -name '*.*' -mtime +60 -exec \rm -f {} \; 1> /dev/null 2>&1
find $app -name '*.log' -mtime +14 -exec \rm -f {} \; 1> /dev/null 2>&1
exit
~