Don’t let that title fool you. I love version control and use it for almost everything—I even tried to use it for my user directories. But today I ran into a little problem…
I saw a post on Wolfs Little Store today called Version Control and You and wondered why he found this little command useful:
Remove all .svn files from a given directory:
find . -type d -name '.svn' -print0 | xargs -0 rm -rdf
I thought to myself, “Seriously? Is he joking? Just use svn export to get rid of everything.” And then, just a few minutes ago, I tried to empty my trash.
I kept getting a warning that I could not empty trash because [item] was locked. There were hundreds of locked items. I tried to do a little sudo rm * -r action on that. No go.
Then I realized what one great use of that command from Wolf’s would be. I ran that and saw immediate results to my satisfaction. It seems that I still have a bit to learn. Hopefully this helps you all at some point as well.
