I have a file like the following and I would like to print the lines between two given patterns PAT1 and PAT2.
PAT1
PAT2
Alternatively:
sed '/START/,/END/!d;//d'
This deletes all lines except for those between and including START and END, then the //d deletes the START and END lines since // causes sed to use the previous patterns.
//d
//