Wednesday, September 12, 2007
Another Find: Finding and Deleting Files Based On Date Creation
To find and delete directories:
For files:
find -mtime +n -daystart | xargs rm -rf
To be sure, we can pipe the result to a text file to double-check the files:
Enjoy deleting!