This question already has an answer here:
egrep -rnw . -e "string"
a lot (in bash), but it would be nice to add some context to the returned results. This would be the line before and after it. Maybe the two lines before and afer it.
Is this difficult to do?
grep, egrep, pcregrep, etc. does not matter.
PS. I just saw this: Search for a string in a line and append related lines which I didn't think of searching for "append".