I'm trying to write a simple script, that just rotates csv table. I mean I have some file:
and so on. All I want, just to make my file
head1;field11;field21 head2;fielad12;field22 head3;field13;field23
I even haven't any idea about how it may work. I don't ask you to write a script, I need idea about how I can maje it in standart shell (unfortunately I'm not able to use bashism or gnu extensions, POSIX only)
ps. Actually I can do it, but only in ugly way with unbelievable enefficient multirereading file with table. I believe there is more beautiful way.