Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

REQ: please me. "get data from line in Perl under Linux" TIA
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

Report this thread to moderator Post Follow-up to this message
Old Post
john
05-09-05 08:57 PM


Re: REQ: please me. "get data from line in Perl under Linux" TIA
john 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

Report this thread to moderator Post Follow-up to this message
Old Post
Gunnar Hjalmarsson
05-09-05 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.