title: grep exclude-dir in current directory or subdirectories
body: <p>I'm attempting to setup my <code>GREP_OPTIONS</code> to always exclude certain directories (e.g. <code>target/classes</code>).  I'm specifically trying to get this to work for recursive greps.  Using <code>--exclude-dir=target/classes</code> works great when the current directory contains <code>target/classes</code>, but not so when I'm in the parent directory.  My current solution requires me to set both <code>--exclude-dir=target/classes</code> and <code>--exclude-dir=*/target/classes</code>.  I'm looking for a more direct solution, which I assume will involve a regex.  I've tried <code>--exclude-dir=(*/)?target/classes</code> and other permutations, but I can't get it to work.</p>
  
  <p>Yes yes, I'm sure this can be accomplished with other tools (i.e. find, awk, etc), but I'd really like to keep this confined (if possible) to the <code>GREP_OPTIONS</code> solution.</p>