in reply to Re: [Solved]Need to extract a particular block of lines between two patterns
in thread [Solved]Need to extract a particular block of lines between two patterns

Hi Cristoforo,

Thank you so much for your help. Please correct me if I understand it wrong - the code will skip the first START ... END pattern but will output the all the following patterns right? That is to say, the third START .. END pattern will be printed out as well even if it's not wanted?

Thank you so much for the help again!

  • Comment on Re^2: [Solved]Need to extract a particular block of lines between two patterns

Replies are listed 'Best First'.
Re^3: [Solved]Need to extract a particular block of lines between two patterns
by Cristoforo (Curate) on Nov 11, 2017 at 02:53 UTC
    Yes, it will skip the first block. It will exit the while loop (last if /^END$/) when it reaches the END for the second block.