Removing all .svn or CVS Directories Recursively
Sometimes you want to get rid of all these .svn or CVS directories (or whatever directories/files). Doing this manually is a pain, better use basic Unix commands. For instance:
rm -rf `find . -name ".svn"`
This recursively deletes all .svn directories, starting in the current directory. In a similar way you can delete all CVS directories, or all *.class files:
rm -rf `find . -name "*.class"`
or whatever. If you have an alias for the rm command (like alias rm=’rm -i’), which makes the rm command prompt before every removal, you can get rid of that prompting by prefixing the rm command with a backslash, like:
\rm -rf `find . -name "CVS"`
But make sure that you do not delete stuff accidentally here.
