Jan
18
2010

Quick note to myself

I always forget how to recursively remove the svn directories from a directory. So here is the command for me and anyone that might need it:

find . -name '.svn' -print0 | xargs -0 rm -rf

It removes all svn directories in the current path.

Be careful though!!! A typo like a ‘/’ can easily remove your entire filesystem, so try replacing rm with echo the first time so you can see what files are about to be deleted.

Written by StarQuake in: Linux |

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes