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
Default

grep colorized output.

in tcsh
Code:
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:
Code:
> setenv GREP_OPTIONS --color=auto
> setenv GREP_COLOR 32
> dmesg -a | grep key
keymap
keymap file ".iso" not found
>
all the best,
v
__________________
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