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

Previous Next

Package: sed;

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

Date: Sun, 10 Jun 2018 22:59:01 UTC

Severity: normal

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Budi <budikusasi <at> gmail.com>
To: bug-sed <at> gnu.org
Subject: I apologize it's not the right place, but I need answer
Date: Mon, 11 Jun 2018 05:58:44 +0700
[Message part 1 (text/plain, inline)]
​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
[Message part 2 (text/html, inline)]

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

Previous Next


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