0
Q:

grep line after match

For grepping all lines from match to end of file use onw of following:
sed -n '/matched/,$p' file
awk '/matched/,0' file
0
Include -A flag to add lines after match and -B flag to add lines before
grep match -A 3	#display match line and 3 after lines
grep match -B 2 #display match line and 2 lines before
0

New to Communities?

Join the community