highlight keywords
Edward McGuire
MetaEd@MetaEd.COM
Wed Jan 20 18:11:00 GMT 2010
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
More information about the Cygwin
mailing list