• + 0 comments

    a longer solution, similar to the the use of the ternary operator:

    awk '{if (NR%2) {ORS=";"} else {ORS="\n"}} {print}'