I want to do the same as in
Extract lines between two patterns from a file
but I want to not have the line with the ending printed. Now, I could grep the results of the solutions to that question, I suppose - but can I, instead, make the sed
or the awk
solutions there use some kind of lookahead to not print the line matching the ending pattern?