Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Eric F Crist
that worked great! thanks! On 6/6/07, Zhang Weiwu <[EMAIL PROTECTED]> wrote: 于 Wed, 6 Jun 2007 11:16:17 -0500 "Eric F Crist" <[EMAIL PROTECTED]> 写道: > That's great! One question, how do I make it highlight the entire > line, rather than the searched-for text? Guess would be: $ my_app | grep

Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Zhang Weiwu
于 Wed, 6 Jun 2007 11:16:17 -0500 "Eric F Crist" <[EMAIL PROTECTED]> 写道: > That's great! One question, how do I make it highlight the entire > line, rather than the searched-for text? Guess would be: $ my_app | grep --color=auto -e '.*regexp.*' -e '$' Add '.*' before and after your regular expre

Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Eric F Crist
That's great! One question, how do I make it highlight the entire line, rather than the searched-for text? Thanks! Eric Crist On 6/6/07, Zhang Weiwu <[EMAIL PROTECTED]> wrote: Dear list I'd like to highlight part of output of one application that matches a regular expression. First I thoug

share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Zhang Weiwu
Dear list I'd like to highlight part of output of one application that matches a regular expression. First I thought this is simple: $ my_app | grep --color=auto 'regexp' This method have a big problem that lines doesn't match regexp is not displayed, in my case I want all output of my_app being