[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] check: don't use multi-line coloring for the report
From: |
Bert Wesarg |
Subject: |
Re: [PATCH] check: don't use multi-line coloring for the report |
Date: |
Fri, 17 Jun 2011 19:27:50 +0200 |
Hi,
On Fri, Jun 17, 2011 at 17:12, Stefano Lattarini
<address@hidden> wrote:
> Hi Bert, and thanks for persiting on this.
only for today, I'm in vacation for the next two weeks ;-) But I try
to post a patch today.
> You could avoid the use of printf above by using the "automatic concatenation"
> feature of awk:
> $ echo x y | awk '{print $1 s $2}' s=":"
> $ x:y
> And now try this (the various "^[" represent the escape character):
> $ red='^[[0;31m' grn='^[[0;32m' std='^[[m'
> $ echo aaa bbb ccc | awk '{print red $1 grn $2 std $3 }' red="$red"
> grn="$grn" std="$std"
> Works as a charm also with Solaris 10 /bin/sh and /bin/awk, and with NetBSD
> 5.1 /bin/sh
> and /usr/bin/awk :-)
Argh, I should have known, Thanks for this. Than, I think we could
finish this today.
Bert
>
> HTH,
> Stefano
>
- [PATCH] check: don't use multi-line coloring for the report, Bert Wesarg, 2011/06/15
- Re: [PATCH] check: don't use multi-line coloring for the report, Stefano Lattarini, 2011/06/16
- Re: [PATCH] check: don't use multi-line coloring for the report, Bert Wesarg, 2011/06/16
- Re: [PATCH] check: don't use multi-line coloring for the report, Stefano Lattarini, 2011/06/16
- Re: [PATCH] check: don't use multi-line coloring for the report, Bert Wesarg, 2011/06/16
- Re: [PATCH] check: don't use multi-line coloring for the report, Ralf Wildenhues, 2011/06/16
- Re: [PATCH] check: don't use multi-line coloring for the report, Bert Wesarg, 2011/06/17
- Re: [PATCH] check: don't use multi-line coloring for the report, Stefano Lattarini, 2011/06/17
- Re: [PATCH] check: don't use multi-line coloring for the report,
Bert Wesarg <=