A shell script is the best way.
I don't know bash syntax well enough to write it for you from memory, but you want something that:
Searches through the structure recursively looking for directories called CVS and erases them.
Grep is going to be your best friend for this. "man grep", as it has a recursive option, meaning you can ls a folder recursively.
Don't quote me on this, but something like (ls -a $dir1 | grep -r cvs | rm)
That could be complete bull**** code for all I know, but you get the rough idea.
All you have to figure out is how to then delete them all!
BTW, how many CVS directories are we talking about here?
Last edited by morrolan; 01-04-2006 at 11:40 AM.
|