A function by name abc is called in many files. I want to copy all the lines with the function call to an output file.
A simple grep on function name doesn't help me as the function call is spanning across multiple lines as follows:
So I want to copy all the three lines (till semicolon) to the output file.
The problem is because there are more than 200 calls for the same function and I cannot do it manually
Thanks in advance.