develooper Front page | perl.beginners | Postings from May 2007

applying a regular expression on the continuous output of ping command

Thread Next
From:
Srinivas
Date:
May 16, 2007 02:28
Subject:
applying a regular expression on the continuous output of ping command
Message ID:
464ACEB4.5020405@geekcrossing.net
Hi,

 ping geekcrossing.net|perl -le "m/time=(\d+)/;print $1";

Can some one help me with the above command

-srini

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About