GNU bug report logs - #35020
I apologize it's not the right place, but I need answer

Previous Next

Package: sed;

Reported by: Budi <budikusasi <at> gmail.com>

Date: Wed, 27 Mar 2019 13:26:01 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Budi <budikusasi <at> gmail.com>
To: 35020 <at> debbugs.gnu.org
Subject: bug#35020: I apologize it's not the right place, but I need answer
Date: Wed, 27 Mar 2019 20:25:24 +0700
How can sed regex substitution replacement be the Hold space content ?
I do need the answer so really appreciate. Thanks much!

On 6/11/18, Budi <budikusasi <at> gmail.com> wrote:
> ​How to use SED command(s) that will replace the shell's pipe command in
> order to perform more efficient, e.g:
>
> echo abcde​ | sed -r 's/cd/XX/' | sed 's/[^x]/z/ig'
>
> become far more efficient and compact, might be look like this,
>
> echo abcde​ | sed -r 's/cd/XX/ {N: s/ ...........    }
>
> ( ...so on. That's what I am asking for )
>
> both will give the same result   zzXXz
>




This bug report was last modified 6 years and 53 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.