Tuesday, April 24, 2012

Grep excluding .svn directories


  1. Temporary/one-time  solution:
grep -Rin "what r u looking for" *|grep -v "\.svn/*"
     2. Permanent solution (for Ubuntu/Linux) - add following line to ~/.bashrc
export GREP_OPTIONS="--exclude=*\.svn*"

0 comments:

Post a Comment