Needed to quickly delete all .svn folders and files within them from a machine where svn client was not setup.
Here’s how:
#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`
Taken from: Any Example
Needed to quickly delete all .svn folders and files within them from a machine where svn client was not setup.
Here’s how:
#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`
Taken from: Any Example
One more way:
find . -type d -name ‘.svn’ -exec rm -rf {} \;
Single quote is not working on Linux
find . -type d -name ‘.svn’ -exec rm -rf {} \;
The right way is:
find . -type d -name “.svn” -exec rm -rf {} \;