![]() |
Remove directories recursively with same name
I know this should be a very simple thing to do, but I can't seem to figure out how to do this. I have a folder that contains the directory named CVS in it and in all of the subdirectories. I need to remove all of these directories. I tried rm -rf */CVS/* but this didn't work. I've tried other variations of the command with no luck. Could someone pls help?
Thanks. |
Probably the easiest is to use:
find ./ -type d -name "CVS" -exec rm -rf {} \; |
Well... this should work..
$ rm -rf CVS |
Quote:
Cheers, Tink |
Thanks david_ross!! The find command worked great. I would think this functionality would be included in the rm command. Anyone know if there is a way to do this with the rm command only?
|
Quote:
|
| All times are GMT -5. The time now is 03:11 AM. |