bug-sed
[Top][All Lists]
Advanced

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

bug#31781: I apologize it's not the right place, but I need answer


From: Budi
Subject: bug#31781: I apologize it's not the right place, but I need answer
Date: Mon, 11 Jun 2018 05:58:44 +0700

​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


reply via email to

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