I have a file like this
line1
this is line1
line2
this is line2
line3
this is line3
I wanted to use awk or sed to remove trailing newline characters at every alternate line to merge them like this
line1: this is line1
line2: this is line2
line3: this is line3
How do I do it using awk or sed
1 Answer