![]() |
|
|
|
|
|||||||
| 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 | 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 | Display Modes |
|
|||
|
The double awks are wasteful, though.
Code:
find . -type d | awk -F "/" '!/\.\/200/ { print $2 }'
|
| Forum Sponsor | ||
|
|