I have never used sed to search and replace on a pattern that is over multiple lines and am a little confused on how I tell sed to look at the next line, if I can. For example, I am searching for this:
static void c0000_ietexit(void)
{
When that is found I want to add this line.
int processReturnCode = 0;
I just am not sure how to tell the search to look at the next line and then inturn pass that back to the replace.