I have a text file as below:
This is a sample file
some dummy text
some dummy text
some dummy text
I don't know how many times this some dummy text above me is repeated
I need only the lines starting from here SOME IMP TEXT
SOME IMP TEXT
SOME IMP TEXT
I don't know how many times this SOME IMP TEXT above and below me is repeated
SOME IMP TEXT
I need it till I find this line SOME IMP TEXT
some dummy text
some dummy text
I don't know how many times this some dummy text above me is repeated
I need a file which has only the lines from "I need only the lines starting from here SOME IMP TEXT" till the find "I need text till I find this line SOME IMP TEXT" (Both the bold lines inclusive). Nothing but I need below:
I need only the lines starting from here SOME IMP TEXT
SOME IMP TEXT
SOME IMP TEXT
I don't know how many times this SOME IMP TEXT above and below me is repeated
SOME IMP TEXT
I need it till I find this line SOME IMP TEXT