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
  2. In, type in the folllowing#!/bin/sh
    echo "Recursively remove .svn folders from"
    rm -rf `find . -type d -name .svn`
  3. Save to your web project folder. Open terminal, go to your web project folder then type:

Image Credit: Daniel Ng

Leave a Comment