Re: Sed advice needed
- From: Tyler MacDonald <tyler@xxxxxx>
- Date: Thu, 31 May 2007 09:49:16 -0700
Piers Kittel <debian@xxxxxxxxxx> wrote:
"181","1324.014027","111.111.111.111","111.111.111.111","RTP","Payload t
ype=ITU-T H.261, SSRC=2008229573, Seq=54520, Time=1725612773, Mark"
"185","1324.078941","111.111.111.111","111.111.111.111","RTP","Payload t
ype=ITU-T H.261, SSRC=2008229573, Seq=54521, Time=1725616276"
I need to convert the above to the below:
"181","1324.014027","111.111.111.111","111.111.111.111","RTP","54520"
"185","1324.078941","111.111.111.111","111.111.111.111","RTP","54521"
This *might* work, it depends on the rest of your dataset;
sed -e 's/,"Payload.*Seq=//' -e 's/, Time=.*$/"/'
Cheers,
Tyler
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: Sed advice needed
- From: Piers Kittel
- Re: Sed advice needed
- References:
- Sed advice needed
- From: Piers Kittel
- Sed advice needed
- Prev by Date: Re: Upgrade from Sarge to Etch problems
- Next by Date: Re: Sed advice needed
- Previous by thread: Re: Sed advice needed
- Next by thread: Re: Sed advice needed
- Index(es):