Regexp/grep to find one of two identical values, depending on a heading?
I have this output on the command line:
search and extract using grep or similar
I have to do a recursive search for a word and then select the line/lines until the ).
My file looks like below and the output is mentioned below.