Recursive Remove Files In Terminal

This is for or less a link for me because I forget how to do this often and have to scour the web

How to recursevely remove all .svn folders:

{syntaxhighlighter brush: bash;gutter: false; light: true; fontsize: 100; first-line: 1; }find . -name “.svn” -type d -exec rm -rf {} \;{/syntaxhighlighter}

How to recursively remove all files and folders starting with ._

{syntaxhighlighter brush: bash;gutter: false; light: true; fontsize: 100; first-line: 1; }find . -name “._*” -exec rm -rf {} \;{/syntaxhighlighter}

I got the original code from:
http://snippets.dzone.com/posts/show/2486

Leave a comment

Your email address will not be published. Required fields are marked *