This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: highlight keywords
- From: Edward McGuire <MetaEd at MetaEd dot COM>
- To: cygwin at cygwin dot com
- Date: Wed, 20 Jan 2010 12:06:16 -0600
- Subject: Re: highlight keywords
- References: <27245865.post@talk.nabble.com>
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