There is a mailing list for sed [EMAIL PROTECTED] for
those interested in keeping tabs on this editor and exchanging tips.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Piers Kittel <[EMAIL PROTECTED]> 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, S
On 2007-05-31T17:05:04+0100, Piers Kittel wrote:
> I need to delete some words out of a large file containing
> information about packets I'm analysing. I know I can use sed to do
> this, but haven't really used it before, so am a bit unsure of how to
> do it. Two example lines are as of be
On 05/31/07 11:05, Piers Kittel wrote:
Hello all,
I need to delete some words out of a large file containing information
about packets I'm analysing. I know I can use sed to do this, but
haven't really used it before, so am a bit unsure of how to do it. Two
example lines are as of below:
On 2007-05-31, Piers Kittel <[EMAIL PROTECTED]> 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, S
Piers Kittel wrote:
Hello all,
I need to delete some words out of a large file containing information
about packets I'm analysing. I know I can use sed to do this, but
haven't really used it before, so am a bit unsure of how to do it. Two
example lines are as of below:
"181","1324.014027"
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=20082
On 31 May 2007, at 17:49, Tyler MacDonald wrote:
Piers Kittel <[EMAIL PROTECTED]> wrote:
"181","1324.014027","111.111.111.111","111.111.111.111","RTP","Payloa
d 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",
Here's one way:
# Put the sample lines into a file called inline.txt
for inline in `cat inline.txt | tr -d " "` #remove spaces for cut
do
# Remove quotes
Tmp=`echo $inline | tr -d "\""`
# Break into fields...
f1=`echo $Tmp | cut -f1 -d","`
f2=`echo $Tmp | cut -f2 -d","`
f3=`echo $Tmp | cut
Piers Kittel ([EMAIL PROTECTED]) wrote on Thu, 31 May 2007 17:05:04 +0100:
>What's the best way to do this? I've been reading the man pages of
>sed, cut and awk but I can't quite figure out how to do this. Any
>ideas?
The sed man page is not very helpful I'm afraid. A pretty good manual is
10 matches
Mail list logo