Peer-reviewed code snippets that anyone can edit
A wiki for useful code snippets
remove all .svn directory in all subdirectory
#!/bin/bash
 
D=$(pwd)
 
echo "Current directory is $D"
read -p "Are you sure to remove all .svn directory in all subdirectory here? [yes/NO] " ANS
 
if [ "$ANS" = "yes" ]; then
   find -type d -name .svn | xargs rm -rf
else
   echo skipped
fi