Wednesday, July 28, 2010

grep excludes files, directories

grep -Ir --exclude="*\.svn*" "pattern" *


note that the grep path is the full path, not just the file names!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.