Греповая линия после матча
awk 'c&&!--c;/pattern/{c=N}' file
Shiny Stag
awk 'c&&!--c;/pattern/{c=N}' file
awk 'c&&!--c;/your_pattern/{c=3}' file
Include -A flag to add lines after match
grep match -A 3 #display match line and 3 after lines