Search This Blog

Monday, December 24, 2012

Unix Command file removal recursive


      I have a project checked out from svn a while ago and wanted to revisit the project, but i realized that instead of using svn export i did a svn checkout so the annoying .svn folders where everywhere. Here is the command to remove them recursively.
Before we issue any kind of rm -rf command lets be safe and list all the .svn folders.
$ find . -type d -name .svn


Then we remove those suckers. 
$ find . -type d -name .svn | xargs rm -rf