Skip to content

Instantly share code, notes, and snippets.

@fedir
Created May 6, 2013 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/5526028 to your computer and use it in GitHub Desktop.
Save fedir/5526028 to your computer and use it in GitHub Desktop.
Removes .svn from some path #shell #svn
#!/bin/bash
find $1 -name .svn -exec echo {} \;
read -p "These files are near to be removed. Continue (y/n)?" choice
case "$choice" in
y|Y )
find $1 -name .svn -exec rm -rf {} \;
;;
* )
echo "No files removed"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment