Re: Re: format grep ouput

2007-07-16 Thread Jon Dowland
> Where does that command go? In bashrc? > > So far, I just have the ls alias and this: > > export GREP_OPTIONS='--color=auto' It's an argument to grep. So you could manually it in with every grep, alias grep to "grep --color=always" in the style of ls in ~/.bashrc, or define the GREP_OPTIONS en

Re: Re: format grep ouput

2007-07-16 Thread Jon Dowland
> Any piping will eliminate the color. That's what happens, > at least, with ls. The default for --color is to only do it with an interactive terminal. You can specify --color=always to ensure it is output even as part of a pipe. You can make things like less pass the control characters through to