it could be slightly less efficient comparing to plain `rm', but worked around
your problem:

find <your-dir> -ctime -1 -exec rm {} \;

basically `find' has a lot options filtering result set. these include
time/date, file name  (regexp), file type and so on. consult man for details

victor


Grant wrote, at 07/17/2011 11:32 PM:
> My crontab deletes all files of a certain type in a certain folder
> with yesterday's date in the filename.  It usually executes but
> sometimes fails with:
>
> /bin/rm: Argument list too long
>
> What would you do about this?
>
> - Grant
>

Reply via email to