shell-script-pt
[Top][All Lists]
Advanced

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

Sed


From: Shell Script
Subject: Sed
Date: Fri, 22 Feb 2002 14:51:46 -0300

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



reply via email to

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