Using sed or awk, how do you print all lines between two patterns, exclusive of the patterns?<sup>1</sup> That is, given as input: ``` aaa PATTERN1 bbb ccc ddd PATTERN2 eee ``` I expect: ``` bbb ccc ddd ``` --- <sup>1</sup> Despite many similar questions, including a more complicated variant that has been asked repeatedly where the patterns may recur, I don't think this exact question has been asked before.