Thanks Jim
Now i understood completely. Very good explanation.
On Fri, May 27, 2011 at 10:45 AM, Jim Gibson wrote:
> At 10:28 AM +0530 5/27/11, vishesh kumar wrote:
>
>> Hi Jim
>>
>
> You should address all of your questions to the list as a whole. That way
> you w
Hi Jim
echo $str | perl -pe 's/.*?(\d+\.[\d.]+).*/$1/'
Giving desired result, but i wonder what is use of ? in this expression
On Tue, May 24, 2011 at 11:59 AM, Jim Gibson wrote:
> At 9:41 AM +0530 5/24/11, vishesh kumar wrote:
>
>> Hi Members,
>>
>> I am a
Thanks Jim
Your suggestion working great !!!
On Tue, May 24, 2011 at 11:59 AM, Jim Gibson wrote:
> echo $str | perl -pe 's/.*?(\d+\.[\d.]+).*/$1/'
--
http://linuxmantra.com
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 ?
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 ?
Dear all
Without involving in this dicussion deeply , i just want to mention
my view . As a newbie in perl as well in this forum i found Shlomi
Fish answers very useful and to the point. So i think blaming
spamming short of thing is not right.
Thanks
On 12/30/10, Shlomi Fish wrote:
> On W
Dear all
I am working on small project of self learning firewall using
perl script on linux. In my script i capture dns packet moving outside
from my network and get domain name of site that user trying to
access.( That part i done successfully.)
Now i want to get authentic