Friday, January 15, 2010

Recursive SVN Directory Removal - Ubuntu 9.10 Karmic

From time to time it can be handy to remove subversion references from code that is sitting on the file system. The following command will remove all '.svn' directories from the current directory on down:

user@machine:~/dev/sample1$ rm -rf `find . -type d -name .svn`

(Please note those are grave accent quotes - below the tilde on the key left of the one(1) key.)

This command should work for all flavours of Unix.

~Fin

No comments:

Post a Comment