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.
755k questions
754k answers
5 comments
53.3k users