help-bash
[Top][All Lists]
Advanced

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

Re: Printing in red during output from head


From: Chris Elvidge
Subject: Re: Printing in red during output from head
Date: Wed, 21 Jul 2021 18:41:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4

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)

--
Chris Elvidge
England




reply via email to

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