I often use the find command to search through source code, delete files, whatever. Annoyingly, because Subversion stores duplicates of each file in its .
find
.
why not just
find . -not -iwholename '*.svn*'
The -not predicate negates everything that has .svn anywhere in the path.
So in your case it would be
find -not -iwholename '*.svn*' -name 'messages.*' -exec grep -Iw uint {} + \;