Search notes:

sed example: join lines pairwise

sed '$!N;s/\n/ /' testfiles/join-lines-pairwise
Github repository about-sed, path: /join-lines-pairwise
The output of this script (using the join-lines-pairwise testfile is:
this is line one
this is the second line
this is the third line
and finally, the fourth line

See also

sed examples

Index