[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: |
Thu, 22 Jul 2021 18:55:40 +0200 (CEST) |
Could things be made to work with tput ?
From: Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
To: Dennis Williamson <dennistwilliamson@gmail.com>
Subject: Re: Printing in red during output from head
Date: 22/07/2021 18:22:36 Europe/Paris
Cc: help-bash <help-bash@gnu.org>
i agree
the like $'s/^==> .* <==$/\e[31m&\e[m/'
On Thu, Jul 22, 2021, 18:16 Dennis Williamson <dennistwilliamson@gmail.com>
wrote:
>
>
> On Thu, Jul 22, 2021, 9:54 AM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
> wrote:
>
>> u'r right :)
>>
>> On Thu, Jul 22, 2021, 16:52 Chris Elvidge <celvidge001@gmail.com> wrote:
>>
>> > On 22/07/2021 02:22 pm, Alex fxmbsw7 Ratchev wrote:
>> > > sed -r $'s/^(==>)(.*)(<==)$/\e[31m\\1\\2\\3\e[m/g'
>> >
>> > You don't need the g at the end (I think)
>> >
>> > --
>> > Chris Elvidge
>> > England
>> >
>> >
>> >
>>
>
> You also don't need the capture groups since you're not doing anything
> with them except outputting them exactly as they were captured.
>
>>
- Printing in red during output from head, (continued)
Re: Printing in red during output from head, lisa-asket, 2021/07/21
Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/22
- Re: Printing in red during output from head, Chris Elvidge, 2021/07/22
- Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/22
- Re: Printing in red during output from head, Dennis Williamson, 2021/07/22
- Re: Printing in red during output from head, Alex fxmbsw7 Ratchev, 2021/07/22
- Printing in red during output from head,
lisa-asket <=
- Re: Printing in red during output from head, Chris Elvidge, 2021/07/22
- Re: Printing in red during output from head, Greg Wooledge, 2021/07/22
- Re: Printing in red during output from head, Chris Elvidge, 2021/07/22