Re: Sed advice needed



On 2007-05-31 17:05 +0100, Piers Kittel 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"

I don't know about "best" but one way to do it would be :

sed 's/Payload.*Seq=\([0-9]*\).*/\1"/'

--
André Majorel <http://www.teaser.fr/~amajorel/>
Feeling lonely ? Report a bug in the Debian BTS and make new friends.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: OT: Choice of OOo and LaTeX
    ... always sends her articles for feedback/corrections to friends who also want ... file, so she could start with a LaTeX file, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: OT: Choice of OOo and LaTeX
    ... always sends her articles for feedback/corrections to friends who also want ... file, so she could start with a LaTeX file, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: OT: Choice of OOo and LaTeX
    ... always sends her articles for feedback/corrections to friends who also want ... file, so she could start with a LaTeX file, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: [OT] FOSS Marketplace
    ... want to make his living out of it. ... than of yourself who of course is embedded in a network of friends who know ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... Trouble? ...
    (Debian-User)
  • Re: A Republican!!!!!! (was Re: OT: sponge burning!)
    ... friends, anyway? ... but I first heard that line from a physics professor! ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)