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`

Post to Twitter Post to Yahoo Buzz Buzz This Post Post to Delicious Delicious Post to Digg Digg This Post Post to Ping.fm Ping This Post

Entry Filed under: shell,svn

Leave a Comment

Required

Required, hidden

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