Handy Little Trick

Kurt Wall kwall
Mon May 17 11:55:57 PDT 2004


Consuming 0.7K bytes, Net Llama! blathered:
> On 11/21/03 15:42, Kurt Wall wrote:
> 
> >This is *so* cool:
> >
> >Highlight occurences of a word in a file:
> >
> >$ grep --color <word> <file>
> >
> >This will highlight each appearance of <word> in <file>.
> 
> Hrmmm, which version of grep does this?  It doesn't seem to support that 
> switch in grep-2.4.2.

Has it in 2.5... The ChangeLog shows it got in in 2001-02-09 as a
patch from Ulrich Drepper of glibc fame.

Kurt
-- 
/earth is 98% full ... please delete anyone you can.


More information about the Linux-users mailing list