I'm on macOS 12.6 and have an issue with the multiline commands in sed.
From this script (taken from the manual):
seq 6 | sed -n 'N;l;D'
I should get this output:
1\n2$
2\n3$
3\n4$
4\n5$
5\n6$
But this is what I get:
1$
2$
2$
3$
3$
4$
4$
5$
5$
6$
I can't figure out why the newline isn't printed unambiguously (that's what the "l" command does)
Thanks in advance!