We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Linux Shell
- Grep Sed Awk
- 'Awk' - 4
- Discussions
'Awk' - 4
'Awk' - 4
Sort by
recency
|
79 Discussions
|
Please Login in order to post a comment
a longer solution, similar to the the use of the ternary operator:
awk '{if (NR%2) {ORS=";"} else {ORS="\n"}} {print}'
simply this works
try this people awk 'ORS=NR%2?";":"\n"'
paste -d ";" - -