This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: highlight keywords


On Wed, Jan 20, 2010 at 11:56, indrek <hosby@hot.ee> wrote:
> I'm using make/gcc for compiling applications. It generates a lot of output.
> I need to highlight some keywords (show red text), in example "error".
> Is it possible with Cygwin. My OS is Windows XP.

Use grep(1). It has the color option you are looking for. Here is an
example having a simple regexp that matches (prints) all lines but
highlights "error" as it does so.

    grep -E --color 'error|$'

Best wishes,

Edward
-- 
What part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"
don't you understand?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]