I am after spending 3 hours trying to just recursively delete some folders and I'm slowly going mad now.
I've tried different variations of the following:
- Code: Select all
find . -name .svn -print0 | xargs -0 rm -rf
- Code: Select all
find . -name .svn -exec 'rm -rf {}\;'
- Code: Select all
rm -rf `find . -name .svn'
I wrote a script but some of the folders contain spaces, so it is also not working:
- Code: Select all
find . -name ".svn" -print | while read file; do
rm -rf $file
done
What am i doing wrong, this should not be so difficult
News