The following is what I want to do but I dont know how to do it.
1.Delete multiple directories and their subdirectories.I want all files that ends with BSCXXX eg APSTBSC1,MTCBSC23 etx
2.Then I would like to use crontab to delete these folders after every 15 mins
3.Folders are in this path /opt/var/test (thus where APSTBSC1 etc are.No worry about subdirectories)
I use the command rm -rf directory but i came across the following article : Article
That suggests that rsynch to an empty folder is the fastest way? rsync -a –delete empty/ a Why is this the case ?
Is there another faster method to delete a nonEmpty folder ?