SSH/Shell - Remove all folders with name "____" within folder AND subfolders

Posted by Kerry on Stack Overflow See other posts from Stack Overflow or by Kerry
Published on 2010-06-10T19:15:35Z Indexed on 2010/06/10 19:23 UTC
Read the original article Hit count: 190

Filed under:
|

I have a script that is copying a folder that contains a couple sub folders. The original that it is copying from is part of an SVN folder, so it is copying those ".svn" folders as well.

I want to remove those from the new destination, my best guess was:

rm -Rf dir/*.svn

Which doesn't work, is there a way to do this or do I need to manually go into each folder to delete it?

© Stack Overflow or respective owner

Related posts about shell

Related posts about ssh