How to transpose data elements in awk
Hi,
I have an input data file :-
Test4599,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,2,R ain
Test90,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,N ot Rain
etc....
I wanted to transpose these data to:-
Test4599 Test90
0 0
0 0
.. ...
In other words, I wanted to transpose elements from vertical to horizontal.
Any idea on how to do that using Awk?
Please advise.
Thanks.