How to use Terminal to delete all .svn folders recursively?
Fresh3 days ago
Mar 15, 202660222 viewsConfidence Score1%
1%
Problem
What command can I type into the Terminal so that I can delete all folders within a folder (and from all subdirectories) but not delete anything else?
Error Output
.svn
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to use Terminal to delete all .svn folders recursively?
Low Risk
Use find, which does recursion in the current directory . filetype is directory filename is .svn print what matched up to this point (the .svn dirs) exec the command . the {} is a placeholder for the entity found the ; tells find that the command for exec is done. Since the shell also has an idea of what ; is, you need to escape it with \ so that the shell doesn't do anything special with it, and just passes to find
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix