Hi, I wonder if this is the expected and correct behaviour of OpenBSD sed(1):
$ cat file 1 2 3 $ sed -e '1c\' -e 'A' file A2 3 $ sed -e '1i\' -e 'A' file A1 2 3 $ sed -e '1a\' -e 'A' file 1 A2 3 I was expecting the 'A' to be followed by a newline in all of the above cases. I can't for the life of me figure out how to insert that newline without resorting to using GNU sed. This is on OpenBSD 6.4-current (GENERIC.MP) #634: Sat Jan 26 15:39:11 MST 2019 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP Regards, -- Andreas Kusalananda Kähäri, National Bioinformatics Infrastructure Sweden (NBIS), Uppsala University, Sweden.