Hello , I have a row like following
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 – is in a file
i want that after every fourth column next four should come in new line
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
Can you help me with this ?

I’m using the trans.awk above. I’m getting this output
fieldname1 data1
fieldname2 data2
and so on but I would like to have this instead
fieldnr1 fieldname1 data1
fieldnr2 fieldname2 data2
and so on.
How could I change that script to get this?