Sign inSign up

genzouw/csvtool

By genzouw

•Updated over 5 years ago

Image
0

786

genzouw/csvtool repository overview

⁠csvtool on Docker

Docker Cloud build status Docker Pulls Docker Cloud Automated build

dockeri.co

⁠Description

overview

Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.

⁠Requirements

⁠Installation

You do not need to install !

⁠Usage

$ 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

⁠Relase Note

dateversionnote
2021-04-030.1first release.

⁠License

This software is released under the MIT License, see LICENSE.

⁠Contribution

⁠Help

Got a question ?

File a Github issue⁠, send an email to [email protected]⁠ or tweet to @genzouw⁠ on Twitter.

⁠Author Information

genzouw⁠

Tag summary

Content type

Image

Digest

Size

21.9 MB

Last updated

over 5 years ago

docker pull genzouw/csvtool