[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing in red during output from head
From: |
Greg Wooledge |
Subject: |
Re: Printing in red during output from head |
Date: |
Wed, 21 Jul 2021 14:04:24 -0400 |
On Wed, Jul 21, 2021 at 06:41:26PM +0100, Chris Elvidge wrote:
> On 21/07/2021 05:32 pm, lisa-asket@perso.be wrote:
>
> > | sed -e 's/==>/\x1B[01;31m==>/;s/<==/<==\x1B[0m/'
> >
>
> I'll go along with that way of inserting escape sequences (\x1B).
>
> Certainly \033 and \e don't seem to work as alternatives to Esc (on my
> command line (bash 5.1.0)
Bash is not performing the conversion here, because the content is inside
plain old single quotes. The code above only works if sed does it.
Whether sed does this conversion will depend on the implementation of sed.
- Printing in red during output from head, (continued)
- 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
- 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
- Printing in red during output from head, lisa-asket, 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 <=
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, 2021/07/22
- 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