[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grep highlighting



T wrote:
On Thu, 28 Sep 2006 14:24:21 -0700, Jeff D wrote:

The recent grep supports highlighting. How can I make it works?
try this out:

export GREP_OPTIONS='--color=auto' GREP_COLOR='1;31'

Thanks a lot! That's fast! It works!

What does the GREP_COLOR='1;31' mean, where can I find info for it?

The man page only says:

       GREP_COLOR
              Specifies the marker for highlighting.

thank



from dircolors --print-database

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white



Reply to: