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

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

Sed para substituir


From: Aguimar Rezende Junior
Subject: Sed para substituir
Date: Mon, 28 Oct 2013 09:24:17 -0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

Bom dia pessoal


Sou novo no mundo do shell script e novo na lista estou com a seguinte dúvida sobre o Sed para substituir palavras na linha.

Tenho a seguinte linha: Oct 20 04:43:02 servidor postfix/qmgr[3125]: DFE6924415F: from=<address@hidden>, size=2465, nrcpt=1 (queue active)

Preciso substituir/retirar a parte: servidor postfix/qmgr[3125]:

Sei fazer isso para palavra simples como "servidor" mas como remover os caracteres / [3125] ? Tem alguma sintaxe diferente desta ?

 sed -e "s/servidor/ /g"


Agradeço antecipadamente pela ajuda.


Aguimar Rezende B Junior.













reply via email to

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