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

Reply via email to