I need to delete n no. of lines above a PATTERN and m no of lines below the PATTERN
I tried using sed
Code:
sed '/PATTERN/,+12d' old.xml> new.xm
But this deletes after the pattern, I need something to delete before the pattern also.

Please suggest