Recursively delete .svn directories
9 April 2010 at 3:44 PM
We use find command to find all .svn folders beginning from current directory:
$ find . -type d -name .svn
Now, we pass these directories to rm command, using backtick (key to left of ’1′) around find for command substitution:
$ rm -rf `find . -type d -name .svn`
Buzz This Post
Delicious
Digg This Post
Ping This Post
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed