Tags

,

grep -A2 -B2 someword *.txt

A2 = 2 lines after the searching word
B2 = 2 lines before the searching word

Advertisements