Re: perl as command line

2011-05-26 Thread vishesh kumar
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

Re: perl as command line

2011-05-26 Thread vishesh kumar
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

Re: perl as command line

2011-05-24 Thread vishesh kumar
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

perl as command line

2011-05-23 Thread vishesh kumar
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 ?

Perl For system admin

2011-05-23 Thread vishesh kumar
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 ?

Re: [OT] New Document: "How to Start Contributing to or Using Open Source Software"

2010-12-30 Thread vishesh kumar
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

Fetch site information

2010-06-22 Thread vishesh kumar
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