How do you get 10 lines after grep?

How do you get 10 lines after grep?
Answer
4 Answers. You can
use the -B and -A to print lines before and after the match. Will print the 10 lines before the match, including the matching line itself. And if you need to print 10 lines of leading and trailing output context.
 

Tìm kiếm

Back
Top