Re: [uug] Text highlighting in bash?

2010-08-30 Thread Stuart Jansen
On Mon, 2010-08-30 at 09:07 -0600, Ashley Oviatt wrote: > *Bump* > > On 8/27/2010 4:15 PM, Michael Torrie wrote: > > On 08/27/2010 04:11 PM, Bryce Redd wrote: > >> *bump* ~lart BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the respon

Re: [uug] Text highlighting in bash?

2010-08-30 Thread Ashley Oviatt
*Bump* On 8/27/2010 4:15 PM, Michael Torrie wrote: > On 08/27/2010 04:11 PM, Bryce Redd wrote: >> *bump* > ??? > > Thank goodness the UUG list isn't a web forum. Web forums are such > awful interfaces for discussions. > > BYU Unix Users Group > http://uug.byu.edu/ > > The o

Re: [uug] Text highlighting in bash?

2010-08-29 Thread Frank Sorenson
On 08/27/2010 05:20 PM, Joshua Lutes wrote: On Fri, Aug 27, 2010 at 4:09 PM, Stuart Jansen > wrote: echo "Warning: Unstable frobnicator" \ | egrep -i --color '^(warning|error)' I was sort of hoping for something I could stick into a config file or som

Re: [uug] Text highlighting in bash?

2010-08-28 Thread Nicholas Blatter
On Fri, Aug 27, 2010 at 4:05 PM, Joshua Lutes wrote: > Can I specify a rule like matches "^WARNING" somewhere along with a color? The best that I know of is to manually insert the commands to specify color. A script I wrote does something like this: #!/bin/bash R=`tput setaf 1; tput bold` G=`t

Re: [uug] Text highlighting in bash?

2010-08-27 Thread Jonathan Wilson
On 08/27/2010 04:20 PM, Joshua Lutes wrote: > On Fri, Aug 27, 2010 at 4:09 PM, Stuart Jansen wrote: >> >> echo "Warning: Unstable frobnicator" \ >>| egrep -i --color '^(warning|error)' >> > > I was sort of hoping for something I could stick into a config file or > something that would work o

Re: [uug] Text highlighting in bash?

2010-08-27 Thread Joshua Lutes
On Fri, Aug 27, 2010 at 4:09 PM, Stuart Jansen wrote: > > echo "Warning: Unstable frobnicator" \ >| egrep -i --color '^(warning|error)' > I was sort of hoping for something I could stick into a config file or something that would work on all of the lines written to the terminal. Anything li

Re: [uug] Text highlighting in bash?

2010-08-27 Thread Michael Torrie
On 08/27/2010 04:11 PM, Bryce Redd wrote: > *bump* ??? Thank goodness the UUG list isn't a web forum. Web forums are such awful interfaces for discussions. BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their autho

Re: [uug] Text highlighting in bash?

2010-08-27 Thread Bryce Redd
Good question, I want to see an answer for this too. *bump* On Fri, Aug 27, 2010 at 4:05 PM, Joshua Lutes wrote: > Hey everybody! > > I was wondering if it is possible to use a regex to do text highlighting in > bash. So, I have a program that outputs things like "WARNING ..." or "ERROR > ..."

Re: [uug] Text highlighting in bash?

2010-08-27 Thread Stuart Jansen
On Fri, 2010-08-27 at 16:05 -0600, Joshua Lutes wrote: > I was wondering if it is possible to use a regex to do text > highlighting in bash. So, I have a program that outputs things like > "WARNING ..." or "ERROR ..." and I'd like to highlight it with red or > yellow or whatever. Can I specify a

[uug] Text highlighting in bash?

2010-08-27 Thread Joshua Lutes
Hey everybody! I was wondering if it is possible to use a regex to do text highlighting in bash. So, I have a program that outputs things like "WARNING ..." or "ERROR ..." and I'd like to highlight it with red or yellow or whatever. Can I specify a rule like matches "^WARNING" somewhere along wi