1999-10-15-16:06:11 Larry Fletcher:
> I wonder if there's an easy way to calculate the current date minus a number
> of days and then delete all the files in a directory that are older or equal
> to that date.

        find a_directory -mtime +number_of_days -print0|perl -0 -lne unlink

There are other ways, but that's the one I find easy.

-Bennett

Reply via email to