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
paste -s -d' ' input.txt
Although there's a Famous Sed One-Liner (38) to emulate this as in potong's answer.
2.1m questions
2.1m answers
60 comments
57.0k users