Posted: Tue Apr 15, 2014 2:27 pm
As you can see, it can be hard to automate a delete because some of the sub-files were created or updated at different times. And you are correct in assuming that the find command would cause problems by leaving "stragglers".
There's not an easy solution I'm aware of to tell UNIX to "remove this directory if everything in it is older that 180 days, and leave everything alone otherwise".
No matter what method you use, I recommend the following:
1) Remove the entire "filename" directory and all its sub-files.
2) Delete the matching dictionary (D_filename).
There's not an easy solution I'm aware of to tell UNIX to "remove this directory if everything in it is older that 180 days, and leave everything alone otherwise".
No matter what method you use, I recommend the following:
1) Remove the entire "filename" directory and all its sub-files.
2) Delete the matching dictionary (D_filename).