awk – print text between 2 identical markers in a file

Like this:

awk 'BEGIN{flag=0} /MARKER/{flag = !flag;next} flag' inputfule

Adapted from: here.