Transpose a matrix using sed
This yet another way to do it:

sed -r '1{s/$/ /;s/ / \n/g};:a;$!N;s/$/ /;:b;s/\n(.*\n+)(\S+\s)/\2@!@\1/;tb;s/@!@/\n/g;${s/ \n/\n/g;s/\n+$//;q};ba'


This method is somewhat faster and only uses single delimiter which may be crafted to be unique. i.e. @!@ in this example