Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (files)
I have two lines, lets say "-line1-" and "-line2-"
and between these lines I have some lines. The amount and
the content of these lines are unknown. Like this:
So, I want to remove everything between "-line1-" and "-line2-", in this case lines A, B and C. How can I do this?some lines -line1- lineA: xxx lineB: y lineC: zz -line2- more lines
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Removing everything between two lines⭐
by merlyn (Sage) on Dec 28, 2000 at 20:34 UTC |
Back to
Seekers of Perl Wisdom