How to delete everything except .svn directories?
Posted
by
Arek
on Server Fault
See other posts from Server Fault
or by Arek
Published on 2010-08-02T18:55:50Z
Indexed on
2011/01/07
2:55 UTC
Read the original article
Hit count: 270
find
|pattern-matching
I have quite complex directory tree. There are many subdirectories, in those subdirectories beside other files and directories are ".svn" directories.
Now, under linux I want to delete all files and directories except the .svn directories.
I found many solutions about opposite behaviour - deleting all .svn directories in the tree. Can somebody quote me the correct answer for deleting everything except .svn?
© Server Fault or respective owner