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 newlines on each alternate line to concatenate them like
line1: this is line1 line2: this is line2 line3: this is line3
How to do this using awk or sed
source share