From the inside of the working copy:
Linux, Mac OS X, *BSD:
find . -name .svn -exec 'rm -rf {}\;'
Solaris, AIX:
rm -rf `find . -name .svn`
Remove .svn folders from Mercurial repository:
find . -iname .svn | xargs hg rm
From the inside of the working copy:
Linux, Mac OS X, *BSD:
find . -name .svn -exec 'rm -rf {}\;'
Solaris, AIX:
rm -rf `find . -name .svn`
Remove .svn folders from Mercurial repository:
find . -iname .svn | xargs hg rm
Need to replace broken links across 1000 html files?
If you’re using linux/unix/macosx it’s just fire up the terminal and use this:
find -iname "*.htm" -exec sed -i 's/search/replace/' {} \;
search – is regex(or a string in the simplest form) what you’re looking for
replace – is what you’re replacing your string with
If you’re on Windows, well then it’s a bit more complicated. There is a nice tool – TextCrawler, it’s free and does the trick.