View Single Post
  #4   (View Single Post)  
Old 5th May 2008
mtx's Avatar
mtx mtx is offline
Real Name: Valentin Bud
Fdisk Soldier
Join Date: May 2008
Location: RO/TM
Posts: 79

grep colorized output.

in tcsh
setenv GREP_OPTIONS --color=auto
setenv GREP_COLOR 32
to make this settings permanent add them to your ~/.cshrc (quoting erno)
a list of colors can be found here at the bottom of the page.
in bash use export.

here is some output to see how it's working:
> setenv GREP_OPTIONS --color=auto
> setenv GREP_COLOR 32
> dmesg -a | grep key
keymap file ".iso" not found
all the best,
Stop! think! ... the problem is somewhere between the monitor and chair...
"First they ignore you, then they laugh at you, then they fight you, then you win." Gandhi
links: spreadbsd syk
Reply With Quote