grep nth ligne

awk 'c&&!--c;/pattern/{c=N}' file
Shiny Stag