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.
>