Saturday, December 18, 2010

Tip for removing distributed directories in Linux

I needed to strip out the .svn folders from a project which was no longer version controlled. These appear in each folder of an svn hierarchy, so could be a lengthy job!

This did it in a second:
    find . -name .svn -exec rm -rf {} \;

No comments:

Post a Comment