Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
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 5885 posts at DZone. View Full User Profile

Recursively Remove CVS Or Subversion Files From Folders

12.02.2005
Email
Views: 15070
  • submit to reddit
        You could just swap CVS with .svn for subversion etc.

find -d . -name 'CVS' -exec rm -rf '{}' \; -print
    

Comments

Snippets Manager replied on Thu, 2010/01/28 - 5:09am

The -d option is deprecated in GNU find version 4.1.20 This one does the same thing find . -name 'CVS' | xargs rm -r