I am trying to write a script that would be able to read a file.  The
file is broken into number of segments and each segment starts with a
similar string pattern of following type:  2.2.x.y.z: followed with
white space, where x, y, z numbers change throughout the file. The
segment further has number of things that I am looking for.  I want to
be able to capture the segment value in addition to other things in a
specific segment.  What is the best approach to be able to make this
possible?  I have tried number of things but have not been able to
capture the right regular expression to capture the information.  I
would appreciate if any one can send in their response...
 
Regards,
Harjit Singh

Reply via email to