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