I have a txt-file with sentances and am able to find words from a list within it. I would like to print the line above the 'found-line' to a seperate list. I tried it with the below-code, but this only returns `[]`.

Here is my code:

```
fname_in = "test.txt"
lv_pos = []
search_list = ['word1', 'word2']

with open (fname_in, 'r') as f:
    file_l1 = [line.split('\n') for line in f.readlines()]
    counter = 0

    for word in search_list:
        if word in file_l1:
            l_pos.append(file_l1[counter - 1])

    counter += 1

print(l_pos)

```

The text file looks somthing like this:

```none
Bla bla bla
I want this line1.
I found this line with word1.
Bla bla bla
I want this line2.
I found this line with word2.

```

The result I want this:

```
l_pos = ['I want this line1.','I want this line2.']

```