TheWicker
Senior Member
- May 15, 2008
- 810
- 270
So I have a file and need to delete all instances that contain a certain string in the first line. Also Each line below the line that contains that string should also be completely deleted (no matter what it is). How do I make this happen?
Now obviously the expression for finding that first line is:
^.*STRING.*$
After that I'm stuck.
In other words I need to delete TWO lines and the first line contains my string.
Now obviously the expression for finding that first line is:
^.*STRING.*$
After that I'm stuck.
In other words I need to delete TWO lines and the first line contains my string.