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 .

  • submit to reddit
        // description of your code here

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


Snippets Manager replied on Tue, 2007/06/05 - 10: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...