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.
- Create a file and name it cleanSVN.sh
- In cleanSVN.sh, type in the folllowing
#!/bin/sh
echo "Recursively remove .svn folders from"
pwd
rm -rf `find . -type d -name .svn` - Save cleanSVN.sh to your web project folder. Open terminal, go to your web project folder then type:
./cleanSVN.sh
Image Credit: Daniel Ng