Get additional lines before and after grep match
To get additional lines before and after the grep match you can add the arg -n
<cmd> | grep <criteria> -n#
For Example
<some command> | grep "criteria" -n5
To get additional lines before and after the grep match you can add the arg -n
<cmd> | grep <criteria> -n#
<some command> | grep "criteria" -n5