Find time with days range and remove.

  • The example below finds all files within the same directory from 7 days ago to 3 days ago and deletes them...

find . -ctime +3 -a -ctime -7 -exec rm {} \;

- _

Add Comment

Sorry you must log in first to be able to add a comment. Click here to log in.
*/ ?>