[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Sed
From: |
rubens.andrade |
Subject: |
Re: [shell-script] Sed |
Date: |
Fri, 22 Feb 2002 15:50:15 -0300 |
tenta separar por " ; "
ex: sed -e 's/teste/;la\nla/g' arq1
----- Original Message -----
From: Shell Script <address@hidden>
To: <address@hidden>
Sent: Friday, February 22, 2002 2:51 PM
Subject: [shell-script] Sed
> Ola Pessoal,
>
> estou tentando utilizar o "\n", no sed, para quebra a linha, como abaixo:
>
> sed -e 's/teste/la\nla/g' arq1
>
> porem ele substitui:
>
> "teste"
>
> por:
>
> "lanla"
>
> ao invés de quebrar a linha.
>
> Utilizo a versao: sed-3.02-6cl.
>
> Testei com a versao: sed-3.02.80-6cl e funcionou.
>
> Alguem sabe se a versao anterior tem algum bug deste tipo, ou alguma outra
> foram de quebrar a linha com o sed???
>
> Obrigado!!!
>
>
> --------------------------------------
> --------------------------------------
> Marcelo Brunner
> address@hidden
> address@hidden
>
>
> Sair da lista: address@hidden
> Banco Dados: http://www.egroups.com/group/shell-script
>
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
http://br.yahoo.com/info/utos.html
>
- sed, NetWorx, 2002/02/04
- Sed, Shell Script, 2002/02/22