Hi Vishesh,

On Tuesday 24 May 2011 07:11:45 vishesh kumar wrote:
> Hi Members,
> 
>   I am a linux system admin. I want to use perl as a command line like sed
> and awk.
> For example suppose , i need to extract IP Addr from a string or file using
> regrex
> i mean
>   str="hello ip is 192.168.2.1 and data is xxx"
> And i want ip addr only using Regex
>  echo $str | perl -pe  ??????
> 

Please see:

http://search.cpan.org/dist/Regexp-Common/

namely http://search.cpan.org/perldoc?Regexp::Common::net .

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
First stop for Perl beginners - http://perl-begin.org/

"I'm not straight - I'm Israeli."

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to