![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | 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. Shell Script Page. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell script to delete directories... | Stephan | Shell Programming and Scripting | 5 | 05-16-2008 05:11 AM |
| How to delete files in UNIX using shell script | theguy16 | Shell Programming and Scripting | 7 | 04-09-2008 01:40 AM |
| shell script for delete old files | krishnarao | Shell Programming and Scripting | 1 | 07-07-2006 07:21 AM |
| need some help with a script to delete directories. | centrino | Shell Programming and Scripting | 1 | 12-12-2005 05:33 PM |
| Need Help: Delete a file by Shell Script | r3edi | Shell Programming and Scripting | 5 | 07-11-2005 04:13 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I think you don't need to consider deleting the 200* on sub-dir then it's okay.
Thanks |
| Forum Sponsor | ||
|
|
|
|||
|
thanks for all the responses guys...i've tried this:
find . -type d | awk '!/\.\/200*/' | awk -F"/" '{print $2}' | more just to see what it would return, since technically, i will do a rm -fR on the top level dir...Seems like it will do the trick. Thanks. |