Well, I'm not native English speaker and it's not quite clear to me what means "remove 7 days back files" - files older than 7 days, or files created during the last 7 days?
OK, one will "only" change the sign of mtime argument (and better do it before running find with -exec rm...)
I'd also like to mention -mmin parameter to find: granularity will increase from days (mtime, ctime) to minutes ( mmin, cmin)
Good luck,
Petko A.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply