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.
1.4m articles
1.4m replys
5 comments
57.0k users