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