Articles
linux
Get additional lines before and after grep matchlinux

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