![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell script to delete directories... | Stephan | Shell Programming and Scripting | 8 | 05-18-2008 08:00 AM |
| shell script to delete directories... | Stephan | Shell Programming and Scripting | 5 | 05-16-2008 05:11 AM |
| delete pattern files in sub directories | adurga | UNIX for Dummies Questions & Answers | 4 | 03-22-2007 03:41 AM |
| Delete Directories and Contents | t4st33@mac.com | UNIX for Dummies Questions & Answers | 1 | 01-16-2007 03:20 PM |
| Delete old home directories | munch | UNIX for Dummies Questions & Answers | 2 | 03-01-2006 09:16 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
need some help with a script to delete directories.
Hello,
I need a hand with a script im trying to make. I have a directory /usr/db/mail with a bunch of subdirectories such as /usr/db/mail/domain1.com /usr/db/mail/domain2.com etc. etc. all of these directories in turn have sub directories of their own. What I need to do is search all of them and see if there has not been any files written/modified in the past 30 days in any of the sub directories and if so delete the respective /usr/db/mail/domain.com folder. Any assistance would be greatly appreciated. |
| Forum Sponsor | ||
|
|