adeepbite

Recursively Delete “.svn” Folders

In Mac OS X, Tips & Tricks by tigerNTLeave a Comment

Recursively Delete “.svn” Folders

This script can recursively remove files, delete folders like “.svn”. I want to remove the “.svn” folders under each directory of my web project. This script will do this trick.

  1. Create a file and name it cleanSVN.sh
  2. In cleanSVN.sh, type in the folllowing#!/bin/sh
    echo "Recursively remove .svn folders from"
    pwd
    rm -rf `find . -type d -name .svn`
  3. Save cleanSVN.sh to your web project folder. Open terminal, go to your web project folder then type:
    ./cleanSVN.sh

Image Credit: Daniel Ng

Leave a Comment