[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 12:59:33 +0200 (CEST) |
Would you be able to rewrite it and put newlines for it to be more organised
and understandable.
I cannot understand what is going on with the code.
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 .. )
>
Re: Printing in red during output from head, Chris Elvidge, 2021/07/21
- Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/21
- Printing in red during output from head, lisa-asket, 2021/07/21
- Re: Printing in red during output from head, Chris Elvidge, 2021/07/21
- Re: Printing in red during output from head, Greg Wooledge, 2021/07/21
- Printing in red during output from head, lisa-asket, 2021/07/21
- Re: Printing in red during output from head, Greg Wooledge, 2021/07/21