Friday, September 7, 2007

Cheap Tricks VII - Cleanup Subversion Projects

I've been writing too much lately. The whole point of "Cheap Tricks" was to make short posts with little tricks - interesting or not - come hell or high water - yadda yadda yatta.

Here's a trick for recursively removing .svn files from a project structure (as is sometimes necessary):

rm -rf `find . -name .svn`
If you don't like back ticks, you can also use xargs:
find . -name .svn | xargs rm -rf
Useful for all sorts of recursive deletes, like .DS_Stores, or anything.

Enjoy your weekend!

0 comments: