In a Bash context I want to extract all text between two patterns that occur on different lines, but that don't constitute the entire line. So in particular I want to also print the text on the line where the patterns occur, but starting after the start pattern and ending before the stop pattern.
- For example if the input looks like this:
This is line 1 Something else Line 3
- and patterns are
This
and3
- Then desired output is:
is line 1 Something else Line