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 guide me,

-- 
http://linuxmantra.com

Reply via email to