Hands-on task
This task is step 18 of the course “awk and datamash: reports from tables”
Transpose a table
/root/matrix.txt contains a table with space-separated fields: the first line is the column headers, followed by data rows. Transpose it (rows ↔ columns) into /root/trans.txt: each column of the original table must become a row.
Reference:datamash
What you'll practise:
- datamash
- transpose
- transposition
- tables