Sort by

recency

|

79 Discussions

|

  • + 0 comments

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

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

  • + 0 comments
    awk '{print;}' | paste -d ";" - -
    
  • + 0 comments

    simply this works

    awk 'ORS=NR%2?";":RS'
    
  • + 1 comment

    try this people awk 'ORS=NR%2?";":"\n"'

  • + 0 comments

    paste -d ";" - -