# grep for a word and get the lines before and after the occurance # in this case 3 lines before and after grep -C 3 "word" ./file.txt
# grep for a word and get the lines before and after the occurance # in this case 3 lines before and after grep -C 3 "word" ./file.txt