How to merge every two lines into one from the command line? October 18, 2022 by Tarik paste is good for this job: paste -d " " - - < filename