805Recursively removing .svn directories
When you’are working with Subversion, the situation might be familiar: You have checked-out some directories and want to check them in at another repository. Subversion is not happy to do that, it complains with a friendly reminder, that ‘your directory’ is already under version control. The proper way to do it, would probably be to export a clean directory tree, but sometimes this option is not available. Here’s a simple shell script to recursively remove all the hidden ‘.svn’ directories:
rm -rf `find . -type d -name .svn`Wether it is better to use backticks or xargs is being discussed elsewhere.