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

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

Re: [shell-script] Re: quebra de linha / traffic control


From: Reinaldo Carvalho
Subject: Re: [shell-script] Re: quebra de linha / traffic control
Date: Tue, 1 Aug 2006 15:35:46 -0300

Saudações,

infelizmente o comando abaixo não funcionou em versão antigas do
sed... será que alguém pode fazer com awk?

$ cat arq.txt
filter parent 1: protocol ip pref 2 u32 fh 801::817 flowid 1:1060
match 00000000/00000000 at 12
match 0a0b0100/ffffff00 at 16
match 00500000/ffff0000 at 20
filter parent 1: protocol ip pref 2 u32 fh 801::817 flowid 1:1060
match 00000000/00000000 at 12
match 0a0b0100/ffffff00 at 16
match 00500000/ffff0000 at 20

$ cat arq.txt | tr -s '\n' ' ' | sed -e 's/filter/\nfilter/g'
filter parent 1: protocol ip pref 2 u32 fh 801::817 flowid 1:1060
match 00000000/00000000 at 12 match 0a0b0100/ffffff00 at 16 match
00500000/ffff0000 at 20
filter parent 1: protocol ip pref 2 u32 fh 801::817 flowid 1:1060
match 00000000/00000000 at 12 match 0a0b0100/ffffff00 at 16 match
00500000/ffff0000 at 20


--
Reinaldo Carvalho
Debian Sarge 3.1 - Linux User: #238310
Prodepa - address@hidden


reply via email to

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