We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

meinhard on 04/15/08


Tagged

svn Bash delete remove find


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

m00min
meinhard
benpjohnson


Recursively remove .svn directories


Published in: Bash 


Execute this to remove the .svn directory from the current directory and all sub directories

  1. find . -regex '.*.svn' -exec rm -rf "{}" \;

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: Tenzer on April 15, 2008

This has already been posted, in a little different version though: http://snipplr.com/view/5658/remove-svn-files-from-a-directory-structure/

You need to login to post a comment.