[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: substituir pelo mesmo conteudo / remover quebras de linhas
From: |
Marcelo Andrade |
Subject: |
Re: substituir pelo mesmo conteudo / remover quebras de linhas |
Date: |
Fri, 20 Nov 2009 16:58:55 -0300 |
2009/11/20 Marcelo Andrade <address@hidden>:
> (..)
> 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