Find a string in files under Subversion

As a programmer, I’ve been using find to locate string in my source code.  Issuing a find would include svn files too which is not my intension.  Here’s the command:

$ find . -not -regex ‘.*svn.*’ -exec grep “$1″ ‘{}’ \; -print


Add multiple files to svn repository

$ svn st | grep ^? | cut -b7- | xargs svn add

Leave a comment