Quote:
Originally Posted by
methyl
Please post what Operating System and version you have and what Shell you use.
OS version is Red Hat 4.5-6, Bash
Is the "last modified" times stamp which you see in
ls -la usable to identify which directories to delete? Yes, actually, the files to be deleted is only created once and will not be modified.
Are there any subdirectories below the directories concerned? Especially any subdirectories which should not be deleted?There are only two directories, the main directory have subdirectories which contains the files.
The main directory remains and the subdirectories including all files will be deleted.
Do the directories have a naming convention which makes them easy to identify by name? (Using
* in deletion scripts can be dangerous).
The main directory doesn't have any naming convention, only pattern (e.g. ####_####_#### or 192_168_252_101).
The subdirectories, however are based on date when the file is created, like 20120709 for 2012 July 09.
Does the creation date appear in the directory name?
Yes, it appears, but for the subdirectories which are for deletion.
Thanks for the help.