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

Re: grep trick



On Mon, Apr 07, 2008 at 06:49:20PM -0500, Kevin Monceaux wrote:
> On Tue, 8 Apr 2008, Chris Bannister wrote:
>> You can always try different values of GREP_COLOR. Although I can't 
>> seem to get yellow.
>
> After another moment of Googling, for yellow, use:
>
> setenv GREP_COLOR '1;33'
>
> or your shell's equivalent.

Thanks, even works in bash, but
yeah, I found that through dircolors -p, didn't even need to go online.
>From the manpage it wasn't clear what arguments GREP_COLOR took. I
started with GREP_COLOR=brown :-) which didn't work. Then started trying
different numbers, which seemed to miss out on a few colours, so
as a thought I tried "man -k colour" ... nothing ... ...
Arrrgh, of course, "man -k color" ... yes! dircolors. But, for some reason
because "ls" didn't show any yellow I didn't click about the "1;" :-(,
also the semi colon put me off, I mean a '1;' in a script could be
problematic?

-- 
Chris.
======
If you are not subscribed, ask to be CC'd as the Policy of this list is
to reply to the list only.


Reply to: