How to delete 270 lines?
Posted: Thu Apr 22, 2010 4:59 pm
Hello,
What is the regular expression to find and delete 270 lines (no matter what the content) starting at a line that follows a certain expression?
Example:
If the expression is APPLE and its first occurrence is on line 500 (doesn't matter if there are other characters in that line or not), then I want to delete lines 501-770 (270 lines starting with the following line).
Thanks in advance!
Gabor
What is the regular expression to find and delete 270 lines (no matter what the content) starting at a line that follows a certain expression?
Example:
If the expression is APPLE and its first occurrence is on line 500 (doesn't matter if there are other characters in that line or not), then I want to delete lines 501-770 (270 lines starting with the following line).
Thanks in advance!
Gabor