It is a little confusing which character (s) are used in the Windows / DOS version of GNU sed to end a line. In particular, what is the new line (\ r \ n vs \ n) char used to concatenate two lines after the N command?
I want to create a script that concatenate C ++ source strings that use the \ syntax line continuation character.
eg.
int \ a=\ 10;
should be combined into this using a script:
int a=10;
Obviously, I should use something like the āNā command and then the āsā command to replace anything in the pattern space that looks like \ followed by a new char line with an empty line. But on Windows, is this a new line char \ r \ n or \ n after the "N" command?
And do I need to use \\\ r \ n or \\\ n to search for lines with a line continuation pattern?
source share