svn

recursive sed excluding svn files

replace string1 with string2, recursively:

find ./ -path '*/.svn' -prune -o -type f -exec sed -i "s/string1/string2/g" {} \;

GREP sans SVN

Here's a quickie to do a recursive grep, ignoring SVN files:

grep --exclude=\*.svn\* -r "my_string_here" .

Removing all .svn directories

HOWTO Recursively remove all svn directories from a directory... yay I love shell scripting. BE CAREFUL WITH THIS!!

find . -type d -name ".svn" -exec rm -rf {} \;

Syndicate content