2009/11/20 Marcelo Andrade <[email protected]>:
> (..)
> Minha dúvida: como dizer "substitua esta ER por uma quebra de linha
> seguida *do mesmo conteúdo casado*"?

Dificuldade de não ter um shell à mão...  Noutra máquina
Linux acabei encontrando no manual do sed...

"
s/regexp/replacement/
              Attempt  to match regexp against the pattern space.  If success‐
              ful,  replace  that  portion  matched  with  replacement.    The
              replacement may contain the special character & to refer to that
              portion of the pattern space  which  matched,  and  the  special
              escapes  \1  through  \9  to refer to the corresponding matching
              sub-expressions in the regexp.
"

Grato.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

Responder a