sed -n '/keyword/=-10,+10p' file.txt