FAQ
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 .

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 8 | next ›
Discussion Overview
groupbeginners @
categoriesperl
postedMay 24, '11 at 4:11a
activeMay 27, '11 at 12:26p
posts8
users4
websiteperl.org

People

Translate

site design / logo © 2021 Grokbase