Default grep options - Arabesque

<![endif] Arabesque Search Skip to primary content Home About Linux Crypto NCAC Unidex Unix as IDE Vim Koans #access #branding ← Previous Next → #nav-single Posted on May 18, 2012 by Tom Ryder .entry-meta .entry-header When you’re searching a set of version-controlled files for a string with grep , particularly if it’s a recursive search, it can get very annoying to be presented with swathes of results from the internals of the hidden version control directories like .svn or .git , or include metadata you’re unlikely to have wanted in files like .gitmodules . GNU grep uses an environment variable named GREP_OPTIONS to define a set of options that are always applied to every call to grep . This comes in handy when exported in your .bashrc file to set a “standard” grep environment for your interactive shell. Here’s an example of a definition of G...

Linked on 2014-12-18 00:53:43 | Similar Links