I have a list.txt file with a couple of lines like:
this line 1
this line 2
this line 3
this line 4
this line 5
this line 6
I want to delete from line 1 to line 2 with the ex command without using vim editor, I want use the ex command if that is possible
I just know how to delete specific word like break from the list:
$ ex +g/^"break"$/d -cwq list.txt
Below the command which displays the requested transformations.
Arguments of the given ex command:
INPUT: list.txt
RESULTING OUTPUT: list.txt
Good luck