grep third line after match code example
Example 1: grep third line after match
Include -A flag to add lines after match
grep match -A 3 #display match line and 3 after lines
Example 2: grep nth line after match
awk 'c&&!--c;/pattern/{c=N}' file