Cut Problem

Florian Lohoff flo at rfc822.org
Sat Feb 23 19:54:00 CET 2002


On Fri, Feb 22, 2002 at 11:09:24PM +0100, Michael Ring wrote:
> Hi
> 
> Wie kann ich aus folgender Textzeile nur Tag+Datum und die Rufnummer 
> extrahieren? Bei cut kann ich afiak nur einen Bereich angeben. Ich 
> brauche aber mehrere Bereiche.
> 
> textzeile:
> Feb 20 08:54:44 stargate kernel: isdn_net: call from 524681043,1,0 -> 13759
 
grep "call from" syslog | sed -e 's/ stargate .*from //' -e 's/\,.*$//'

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20020223/e8c0d6c3/attachment.sig>


More information about the Linux mailing list