Reference Code backup Executable files
Convert rows to columns and vice versa in a text file (transpose)
rowsToCols in.txt out.txt
This tool is part of UCSC Genome Browser's utilities.
This tool doesn't support empty/blank lines. If the input file has empty ending lines, you may observe error messages like:
Expecting 2 columns got 0, line 3 of input.txt
$ cat input.txt a b c d $ rowsToCols input.txt output.txt $ cat output.txt a c b d