Hi, I have a very large file I want to extract lines from. I'm hoping Grep can do the job, but I'm running into problems.
I want to return all lines that match a pattern. However, if the following line of a matched line contains the word "Raw" I want to return that line as well.
Is this doable?
For example,
Input:
pattern blah blah blah
something nothing
pattern something ready
nothing Raw
A grep on "pattern" should return:
pattern blah blah blah
pattern something ready
nothing Raw
Because the line "pattern something ready" is followed by a line containing "Raw", "nothing Raw" is also included.
Thanks