Pelo menos com o GNU sed, parece ser possível fazer
sed '1,30{/pattern/d}' file
Um teste reduzido: dado file
as
some line
pattern
other line
some line
pattern
other line
então
$ sed '1,3{/pattern/d}' file
some line
other line
some line
pattern
other line