bug-gnu-utils
[Top][All Lists]
Advanced

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

grep --color


From: David L. Baillie
Subject: grep --color
Date: Thu, 23 Apr 2009 14:48:32 -0700

Hi,

This is likely the wrong place to ask, but:

When one uses grep and the --colour option one of course gets the 
greped string in color when output to the screen.

It does not do this when output to a file or piped to a program
like od -cx or even to less (more).

I understand this makes sense as one would not want to contaminate the
output standard I/O.

My question is, can one over ride this "feature" and retain the
colored string when piped to less for example.

Dave

Dave Baillie 
Molecular Biology and Biochemistry
Simon Fraser University
Burnaby BC,Canada






reply via email to

[Prev in Thread] Current Thread [Next in Thread]