How can I recursively delete all files & directories that match a certain pattern? e.g. remove all the \".svn\" directories and the files they contain?
(Sadly DO
Something like this may do the trick, but of course be careful with it!
find . -name ".svn" -exec rm -rf {} \;
Try something like this first to do a dry run:
find . -name ".*" -exec echo {} \;
Note that the empty braces get filled in with the file names and the escaped semicolon ends the command that is executed (starting after the "-exec").