Purging Files X Days Old - TechRepublic
General discussion
October 3, 2000 at 10:02 AM
farazid

Purging Files X Days Old

by farazid . Updated 25 years, 8 months ago

In NT script, is there an easy way of deleting files with specific extension created more than X days ago?

In UNIX, I execute the following script to delete files ‘.trc’ type which are older than 14 days:

find $DDB -name ‘*.trc’ -mtime +14 -exec rm {} \;

Thank you.

This discussion is locked

All Comments