Let me rephrase my question.I'm searching in file for some keyword.When i fond it,i need to print some lines preceding this keyword including it.
-------------------------------------------------------------------------------------------------------------------------------------------------

I want to print range of lines start with some keyword

```
line1
line2
someword
line4
line5

```

After i find this keyword i need to print line1 line2 and this keyword.
Any idea?