SyntaxFix
Write A Post
Hire A Developer
Questions
You can use awk like this to combine ever 2 pair of lines:
awk '{ if (NR%2 != 0) line=$0; else {printf("%s %s\n", line, $0); line="";} } \ END {if (length(line)) print line;}' flle