In a text document I want to concatenate every other line with the next. I guess sed is the thing to use? How would this be done?
This is easiest using paste
:
paste -s -d' \n' input.txt
Although there's a Famous Sed One-Liner (38) to emulate this as in potong's answer.