There is a very simple way of doing this. We use the find command to get all the s/.v .svn folders in a folder. The next step is to pass the output of this command to the delete command .
So to list all .svn folders in the current folder:
find . -type d -name .svn
Next pass the output of this to the rm command by enclosing the find command in accented single quotes:
rm -rf `find. -type d -name .svn`
Another way is to first change your current directory to your project folder and the type :
find ./ -name “.svn” | xargs rm -Rf
Leave a Reply