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 12:50:20 +0200 (CEST)

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]