![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| regex to remove commentaries and blanks | yomaya | Shell Programming and Scripting | 7 | 06-18-2009 08:22 AM |
| regex to remove text before&&after comma chars | yomaya | Shell Programming and Scripting | 3 | 06-08-2009 06:44 AM |
| How to deleting some files under subdirectory | AdziE | Shell Programming and Scripting | 4 | 08-20-2008 09:05 AM |
| Count files in every subdirectory | yorryk | Shell Programming and Scripting | 3 | 08-12-2008 06:22 PM |
| subdirectory password | sskb | UNIX for Dummies Questions & Answers | 1 | 09-24-2001 06:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
There are directories under, so this doesn't work. The directories look like this:
/directory/images/fsa/09005573FRA /directory/images/fsa/09004364EVA It is these 0900.... directories that need to be removed. There a literally hundreds of these subdirectories that I need to remove. I guess my question wasn't clear enough. Can you still help me? |
|
||||
|
Actually I think that should work. You seem to confirm that there are only subdirectories called fs* (e.g. fsa) in $DIRECTORY (/directory/images). These subdirectories must not be removed but the subdirectories inside these subdirectories do have to be removed if they are empty (i.e. contain no files or further subdirectories).
S. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|