grep -A2 -B2 someword *.txt 08 Friday Jun 2012 Posted by technoless in Uncategorized ≈ Leave a comment Tagslinux, shell grep -A2 -B2 someword *.txt A2 = 2 lines after the searching word B2 = 2 lines before the searching word Share this:TwitterFacebookLike Loading... Related