Article
home/blog/Loading

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