Skip to main content
1 of 4

Why awk 'NR%2 == 1?ORS=";":ORS="\n"' give syntax error?

I am solving a Hackerrank question where the output is A 25 27 50;B 35 37 75 C 75 78 80;D 99 88 76 for input A 25 27 50 B 35 37 75 C 75 78 80 D 99 88 76. I am using ORS to do the above task. But I don't know why runtime error is coming?

Error coming is awkNR: cmd. line:1: Possible syntax error