Skip to main content

Colour Linux & Cygwin console searches with Colourised Grep

Grep is a wonderful tool useful for searching for all kinds of stuff but sometimes what you are searching for gets lost:

To get your console shell to add a little colour to your grep search terms add the following to your .bashrc or .profile or the like:
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;33'
Now if you perform the same search again your output should be a little clearer:

And as an added bonus this works on Cygwin (the Windows Unix shell) as well as Linux!

Technorati Tags: , , , , , ,