|
Search:
Advanced search
|
Browse by category:
|
Glossary | Contact Us |
Detach a working copy from SVN or CVS |
|||||
In order to detach a working copy of some code and get the clean structure, without the .svn (.cvs) folders you may use something like:
find . -name ".svn" | xargs rm -rf
The problem is that if any of the paths that are returned by find have a space in them, rm tosses everything up to the space.
In other words, if you have something like this: /Documents/Projects/My Really Important Stuff/Project1
and "My Really Important Stuff" contains more than just Project1, you can kiss it all goodbye. The much safer way is: find . -name ".svn" | while read f; do rm -r "$f" ; done |
|||||
| Others in this Category | |
| Remove Empty Lines and Comments | |
| Lab Exam and sample solutions | |
| Standard Input and Output Redirection | |
| Remove path from find result in Bash | |
Powered by
KBPublisher (Knowledge base software)