0

I have a directory that I want to delete all the .svn folders in all of its subdirectories. Is there a command that can do this without me having to go through each individual subdirectory and delete them that way? I tried doing it through nautilus as suggested here How to delete all the files with a certain extension from a folder and all of its subfolders?

But when I search, it does not show any hidden folders, even though I have that option enabled.

Any help is appreciated.

1 Answer 1

3

Find all such directories:

find -name .svn -type d

If you are sure, delete all of them:

find -name .svn -type d -delete
1
  • Sorry for the edit. It's my bad - have forgotten '.svn' is the exact name. Can't find a way to cancel it - please ignore.
    – Pavel A
    Dec 11, 2012 at 20:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .