deleting by date a specific range of files
Hi,
I'd like to go further than deleting files after a certain date i.e. find . -mtime +30 -exec rm {} \; and have instead a time frame defined for deleting. For example, I have some file from Sept 2006 only that I want to delete and to keep files that are older than that. Can anyone help me? Thanks in advance! |
Well, I'm not exactly sure how many days ago Sept 2006 was, but:
Code:
find . -mtime [numberOfDays] -exec ls -lad {} \; HTH Forrest |
I may have misread what you were asking. You can also do something like:
Code:
find . -mtime +[numberOfDaysToSept312006] -mtime -[numberOfDaysToSept012006] -exec ls -lad {} \; Forrest |
All times are GMT -5. The time now is 04:38 AM. |