Remove hidden .svn folders from command-line

I had a small problem on my Mac when I wanted to rebuild a subversion repo. When I worked on windows, I just searched the project folder for .svn folders.

But on Mac and Linux, thats another story. Thankfully for the command-line, one quick command, and the problem is fixed:

find . | grep .svn$ | xargs rm -rf