Thanks Joseph. Everything is working fine. I was wrong, It is doing just
what I need.

Thank you very mach.


----- Original Message -----
From: "Rudolf Amirjanyan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 15, 2002 6:10 AM
Subject: Re: Log filtering


> I'm sorry, but it has done something else.
>
>
> ----- Original Message -----
> From: "Joseph V Moss" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 15, 2002 5:46 AM
> Subject: Re: Log filtering
>
>
> >
> > Assuming that is actually stored in the file as one long line, one
> > possibility would be:
> >
> > cut -d, -f4,8,9 filename | sed 's/ PeerAddress //'
> >
> > > Dear Joseph / All
> > > what would you sugest to do in this case. In my log file I have this:
> > >
> > > Oct  5 11:43:42 65.113.59.250 1960: Oct  5 15:43:41.837 UTC:
> > > %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 2, ConnectionId 2DE762A9
> FC100F3F
> > > 0 841C1B4, SetupTime 15:43:26.700 UTC Sat Oct 5 2002, PeerAddress
> > > 091422594759#, PeerSubAddress , DisconnectCause 3   , DisconnectText
no
> > > route to destination., ConnectTime 15:43:41.700 UTC Sat Oct 5 2002,
> > > DisconnectTime 15:43:41.700 UTC Sat Oct 5 2002, CallOrigin 1,
> ChargedUnits
> > > 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 0,
> > > ReceiveBytes 0
> > >
> > >
> > > But I need only this fields:
> > >
> > > 091422594759#, ConnectTime 15:43:46.330 UTC Sat Oct 5 2002,
> DisconnectTime
> > > 15:43:46.330 UTC Sat Oct 5 2002
> > >
> > >
> > >
> > > Thanks
> > >
> > >
> > > From: "Joseph V Moss" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 15, 2002 3:56 AM
> > > Subject: Re: Log filtering
> > >
> > >
> > > > > I have a file like this
> > > > >
> > > > > aaaaaaaaaaaaa
> > > > > bbbbbbbbbbbbb
> > > > > aaaaaaaaaaaaa
> > > > > bbbbbbbbbbbbb
> > > > >
> > > > > How I can filter this file, so that all the lines containing
> > > bbbbbbbbbbbbb, were deleted.
> > > > > Is there any way to do it ?
> > > > > Thanks in advance.
> > > > >
> > > >
> > > > There are *lots* of ways to do it.   Here are just three examples:
> > > >
> > > > grep -v bbbbbbbbbbbbb filename
> > > >
> > > > sed '/bbbbbbbbbbbbb/d' filename
> > > >
> > > > awk '/bbbbbbbbbbbbb/ {next} {print}' filename
> > > >
> > > >
> > > >
> > > > --
> > > > redhat-list mailing list
> > > > unsubscribe
mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> > >
> > >
> > > --
> > > redhat-list mailing list
> > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> >
> >
> >
> > --
> > redhat-list mailing list
> > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> > https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to