remove the CVS folders

If you use CVS for your code you probably notice that a CVS folder is created under each directory in your code base. I was playing with the code the other day but struggling to get a clean code base because all these CVS folders are in place. After a little bit of researching this Unix command did the job for me:

find . -name CVS -exec rm -rf {} \;

Basically a “find” command can be concatenated with other commands so the same operation can be applied recursively to all the found results.

Since this is a Unix command Cygwin is required to run it on Windows.

This entry was posted in cvs and subversion. Bookmark the permalink.