Handy Little Trick

Gary Sublett gsublett
Mon May 17 11:55:56 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 22 Nov 2003 07:45:06 -0800
"Net Llama!" <netllama at linux-sxs.org> wrote:

> 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.


grep (GNU grep) 2.5.1 supports this switch, don't know about earlier
versions.

- ---
Gary
 12:17:22  up 31 days, 13:02,  3 users,  load average: 0.12, 0.11, 0.05
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/v5phsU4FV1lLQCQRAuutAKCHa/jy1OotkBFmqIcQXQsFpY0RqgCcDvn2
XMGP5XXwzDrOcQimDBYmZw8=
=C8Ko
-----END PGP SIGNATURE-----


More information about the Linux-users mailing list