Code Comments
Programming Forum and web based access to our favorite programming groups.please help to get the number of the following example line: RX bytes:55313 (54.0 Kb) TX bytes:55313 (54.0 Kb) i could filter this line from the ifconfig command, but how can i get the bytes, "55313", from the line? many thanx in advance john
Post Follow-up to this messagejohn wrote: > please help to get the number of the following example line: > > RX bytes:55313 (54.0 Kb) TX bytes:55313 (54.0 Kb) > > i could filter this line from the ifconfig command, but how can i get > the bytes, "55313", from the line? Extract them by help of the m// operator. perldoc perlop (where the m// operator is described) perldoc perlretut (where you find more about regular expressions in general including more extracting examples) -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.