overview
Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.
You do not need to install !
$ seq 1 10 | xargs -n 3 echo | sed 's/ /,/g'
1,2,3
4,5,6
7,8,9
10
$ seq 1 10 | xargs -n 3 echo | sed 's/ /,/g' > test.csv
$ docker run --rm -v "$PWD:/workdir" --workdir /workdir genzouw/csvtool transpose ./test.csv
1,4,7,10
2,5,8
3,6,9
I recommend that you set the following alias in ~/.*rc
.
$ alias csvtool='docker run --rm -v "$PWD:/workdir" --workdir /workdir genzouw/csvtool'
Then you can easily call the command.
( Note that when using relative paths, you can only specify files under the current directory. For example, you cannot specify ../test.csv
. )
$ csvtool transpose ./test.csv
1,4,7,10
2,5,8
3,6,9
date | version | note |
---|---|---|
2021-04-03 | 0.1 | first release. |
This software is released under the MIT License, see LICENSE.
Got a question ?
File a Github issue, send an email to genzouw@gmail.com or tweet to @genzouw on Twitter.
- Twitter : @genzouw ( https://twitter.com/genzouw )
- Facebook : genzouw ( https://www.facebook.com/genzouw )
- LinkedIn : genzouw ( https://www.linkedin.com/in/genzouw/ )
- Gmail : genzouw@gmail.com