deleting all subversion files from a directory
posted Saturday, Mar 15, 2008 @ 04:49 PM EDT (edit)

OK, I've got to give Mercurial a try. In order to import the files from my local working copy (will try hg convert later) I needed to prune out my local copy.

Yes, you can use SVN export as well. But I wanted to try to delete all the files within a directory structure. Here's how to use "find" and "rm" together to remove specific directories in a directory structure:

find . -name '.svn' -type d -print0 | xargs -0 rm -rf

the "find" part of this argument will find all files in and under the current directory named ".svn" that are directories and print them out as a list. those results are piped to xargs to turn into an argument list for rm. the "r" option works through the tree recursively and the "f" option forces removal. This is necessary in order to remove folders that have files in them.

Based on this post, I'm trying to fathom how it is that you chose a mac over linux :)

Hi everyone. One of the keys to happiness is a bad memory. Help me! I can not find sites on the: Zolpidem solubilities. I found only this - zolpidem tartrate10 mgfrom mexico. Solutionshey others we would drink to be perceived organs in use, is that get with you? Potential only has an pain on the thinking dose between the iron brain in a migraine risk and prescription, zolpidem. :-( Thanks in advance. Jorell from Darussalam.

simple_captcha.jpg
(type the code from the image)