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

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

Remover bloco em um arquivo texto


From: M. Rodrigo Monteiro
Subject: Remover bloco em um arquivo texto
Date: Tue, 15 Feb 2011 15:41:30 -0300

Pessoal, boa tarde.


Tenho um arquivo com o seguinte padrão:

texto_estatico "bloco01" {
      texto_estatico
      arquivo "arquivo_bloco01.txt"
}
texto_estatico "bloco02" {
      texto_estatico
      arquivo "arquivo_bloco02.txt"
}
texto_estatico "bloco03" {
      texto_estatico
      arquivo "arquivo_bloco03.txt"
}


Eu consigo saber se ele existe e qual é o conteúdo do bloco com a
opção "-A" do grep.
Estou precisando remover desse arquivo somente o bloco02. Como faço?


Abraços,
Rodrigo.


--
M. Rodrigo Monteiro

"Free as in Freedom, not free as in free beer"
"As we are liberated from our own fear, our presence automatically
liberates others"
Linux User # 403730


reply via email to

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