genzouw / docker-csvtool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

date version note
2021-04-03 0.1 first 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 genzouw@gmail.com or tweet to @genzouw on Twitter.

Author Information

genzouw

About


Languages

Language:Dockerfile 100.0%