![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
How can I remove everything between two lines in a file?by Anonymous Monk |
on Dec 28, 2000 at 20:31 UTC ( #48631=perlquestion: print w/replies, xml ) | Need Help?? |
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? Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|