onyxfish/csvkit — pull request #221 by ole-tange (2013-08-19 16:47:04+00:00)
Title: csvtranspose: Transpose (flip columns/rows) CSV-file. Deals nicely with ...

csvtranspose: Transpose (flip columns/rows) CSV-file. Deals nicely with thousands of columns/rows.

Usage:

cat foo.csv | csvtranspose delimiter buffersize > foo_transposed.csv

Example:

cat foo.csv | csvtranspose , 1000M > foo_transposed.csv