help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing in red during output from head


From: lisa-asket
Subject: Printing in red during output from head
Date: Wed, 21 Jul 2021 13:03:09 +0200 (CEST)

I would like to have the whole line in red including the arrow tags.

From: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
To: lisa-asket@perso.be
Subject: Re: Printing in red during output from head
Date: 21/07/2021 12:51:44 Europe/Paris
Cc: help-bash <help-bash@gnu.org>

the <<< redirects its next argument to stdin of the cmd in question
it just was a copypaste of my terminal, where i tested, .. didnt remove it
in the end no '<<< "str..."'

On Wed, Jul 21, 2021 at 12:50 PM <lisa-asket@perso.be> wrote:
>
> I am getting confused about foo and bar.
>
>
> From: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
> To: lisa-asket@perso.be
> Subject: Re: Printing in red during output from head
> Date: 21/07/2021 05:28:19 Europe/Paris
> Cc: help-bash <help-bash@gnu.org>
>
> gawk -v ORS= -v RS='<==|==>' 'RT == "==>" { $0 = $0 RT "\33[31m" } RT
> == "<==" { $0 = $0 "\33[m" RT } 1' <<<'==> foo bar <=='$'\nbarbar\n==>
> again <==\nbla'
>
> find | .. | gawk
> gawk <( find .. )
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]