ExperimentGarden
Taste great books and share them with your friends: Bookflavor

Recursively remove .svn directories in Mac OS X using command line bash.

If you want to remove all the .svn folders from a SVN repository to "uninstall" SVN from it, or clean it in preparation for deployment or making a tarball you can use the following simple line of bash script. This has been test and verified to work in Mac OS X Snow Leopard:


rm -rf `find . -type d -name .svn`

If you enjoy reading Experiment Garden, then you should subscribe by clicking here.


1 comment so far. What are your thoughts?

Anonymous said...

Try this:

find . -type d -name .svn -exec rm -rf {} \;

May save some mistakenly removed directory :)

Nick

You should try Duck Duck Go, the better search engine that protects your privacy.

Next > < Previous
Copyright © 2008-2010 by Experiment Garden