Answers for "grep third line after match"

0

grep third line after match

Include -A flag to add lines after match
grep match -A 3	#display match line and 3 after lines
Posted by: Guest on November-26-2020
0

grep nth line after match

awk 'c&&!--c;/pattern/{c=N}' file
Posted by: Guest on October-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language