Monday 30 November 2020

Using grep to display lines around the match also

 Example:

>grep -i  -C 2 "Module: my_program" report20201129*


In this case, we want to display the line above the ones that matches the pattern, since it contains important info.