It is a bit confusing as to what character(s) are used in Windows/DOS version of GNU sed to terminate a line. In particular, what is the newline (\r\n vs \n) char used to join 2 lines after an N command?
What I want is to create a script that combine C++ source lines that is using the line continuation character \ syntax.
e.g.
int \
a=\
10;
should be combined into this by my script:
int a=10;
Obviously I should use something like the "N" command and then the 's' command to substitute anything in the pattern space that looks like \ followed by a newline char with an empty string. But in Windows is this newline char \r\n or \n after an "N" command?
And should I use \\\r\n or \\\n to search for the lines with the line continuation pattern?