I thought of that and thought that the OP probably didn't want the matched line deleted or they would have said so. In which case I thought that they would only want 10 lines or less deleted back to the last match. Which leaves me doing a lot of ass of you and me-ing.
However, your modification is definitely more correct in the general case.
--
John.
In reply to Re^3: Delete 10 lines before matched line
by jmcnamara
in thread Delete 10 lines before matched line
by briggs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |