I have a file similar to:

```
abcdef
123
ghiflk
234
sfhskdhf
483

```

I would like to search for a string, and the output should include the next (and/or previous) line as well.

So for example:

```
grep "bcd" myfile

Output:
abcdef
123

```

Or show previous line:

```
grep "ifl" myfile

Output:
123
ghiflk

```

I tried for days now to find a solution online but can't seem to figure it out.