Use the prune option in find command
I have a nice line of code for a recursive search and replace from the current directory.
find . -type f | xargs perl -pi~ -e 's/oldtext/newtext/g;'
However, I need it to ignore all the .svn directories in the children directories. I've been playing with the -prune option and have not been able to swing it. Any ideas? Thanks.
|