Transpose using awk

Hi Friends,
Very urgent requirement
please do needful ASAP..

Input:

|1||1|1||1|3||3|2||2|4||4|2||2|3||3|NA||0|5||5|NA||0|4||4|3||3

output:

|1||1
|1||1
|3||3
|2||2
|4||4
|2||2
|3||3
|NA||0
|5||5
|NA||0
|4||4
|3||3

Please provide logic in awk only.
I have tried but unable to substring properly.

Please search forum once before posting. :slight_smile:

The below URL might help you.

Transpose Using Awk

Hi saps19,
Thanks for you quick reply.
But Written logic in given link doesn't full fill my requirement.
please help me out

Please let us know:

If, the single separator is "|" (ASCII value: 124) and double separator is "||" (ASCII value: 186) or all separtors are "|" only.

ASAP, urgent, and even more Very urgent are difficult words in here, see forum rules.
Please show us your attempts including results and/or error msgs.