If you are using unix/linux, then an alternative way to find and delete old files is with find and xargs:
find <directory> -type f -ctime +10 -name "*some*pattern*.txt" | xargs rm -fI have fragments like that in the crontab for the systems I maintain, as it is very easy to setup and then just leave to run for ever.
In reply to Re: Deleting old files from directory
by chrestomanci
in thread Deleting old files from directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |