find all text files in the current folder excluding those that are presenti n the folder "/svn" and search for a pattern.
find . -name '*.txt' \! -wholename '*/.svn/*' -exec grep 'sometext' '{}' \; -print