Ubuntu Linux

How to switch rows and columns in a data table (text data.csv file) ?

Using datamash

# install datamash

sudo apt-get install datamash

# transpose data matrix table: turn row into columns

datamash transpose < data_rows.csv > newdata_columns.csv

https://www.gnu.org/software/datamash/