DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Recursively Removing .svn Folders From .

08.17.2010
| 1163 views |
  • submit to reddit
        // description of your code here

//"recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`
    

Comments

Snippets Manager replied on Tue, 2007/06/05 - 11:43am

Or: find . -type d -name .svn | xargs rm -rf This could be better when 'find' returns a lot of files and the input command line buffer is overflown... xargs takes care of keeping command line not too long...