[Solved]Need to extract a particular block of lines between two patternsby chengchl (Novice)
|on Nov 09, 2017 at 00:39 UTC||Need Help??|
chengchl has asked for the
wisdom of the Perl Monks concerning the following question:
I have seen the post here about "Getting lines in a file between two patterns" (http://www.perlmonks.org/?node_id=979946)
I was curious that what if I need to extract only the second block of lines that meet the pattern?
Is there something that we can do via (/START/ .. /END) pattern matching? Many thanks
I have a text file -
I think I find a way. Thanks guys
--- Updated on Nov. 10, 15pm PST Thank you so much guys. I read through all your answers and appreciate your help. Thank you all and have a nice day.