transpose is a fast and efficient command-line tool that transposes (the rows become the columns, the columns become the rows) or reshapes a matrix in plain text. Inputs and outputs can be files or streams.
- Transposes the rows and columns of a plain text matrix - other reshaping can also be performed.
- Handles badly-shaped matrices easily.
- Integrates well with other command-line tools.
- Fast and light on resources.
I think the transpose of a b c d should be a c b d instead transpose does: $ echo -e 'a\tb\nc\td\n' | ./transpose a b c d