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?
See Question&Answers more detail:osIn 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?
See Question&Answers more detail:osThis is easiest using paste
:
paste -s -d'
' input.txt
Although there's a Famous Sed One-Liner (38) to emulate this as in potong's answer.