Skip to content

Instantly share code, notes, and snippets.

@bashilbers
Created June 12, 2015 17:25
Show Gist options
  • Save bashilbers/c3a2a6a4cb8db12a7c84 to your computer and use it in GitHub Desktop.
Save bashilbers/c3a2a6a4cb8db12a7c84 to your computer and use it in GitHub Desktop.
remove-svn-folders
#!/bin/sh
echo -e "\e[31m"
echo "recursively removing the following .svn folders from"
pwd
echo -e "\e[39m"
find . -type d -name .svn
echo -e "\e[31m"
read -p "Continue (y/n)?" choice
echo -e "\e[39m"
case "$choice" in
y|Y ) rm -rf `find . -type d -name .svn`;;
n|N ) echo "no action taken";;
* ) echo "invalid";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment