Google Spreadsheet like join. https://support.google.com/docs/answer/3094077
Example1 echo "test\ntest\ntest" | gs-join -d ","
test,test,test
Example2 $ gs-join -d "," file1 file2
Executable binaries are available at releases.
For example, for linux x86_64,
$ wget https://github.com/SpringMT/gs-join/releases/download/v0.0.1/gs-join_linux_amd64 -O gs-join
$ chmod a+x gs-join If you have the go runtime installed, you may use go get.
$ go get github.com/SpringMT/gs-join% gs-join -h
NAME:
gs-join - Google Spreadsheet like join
USAGE:
gs-join [global options] command [command options] [arguments...]
VERSION:
0.0.1
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--delimiter value, -d value Use character char as a field delimiter
--help, -h show help
--version, -v print the version
- write tests
To build, use go get and make
$ go get -d github.com/SpringMT/gs-join
$ cd $GOPATH/src/github.com/SpringMT/gs-join
$ make
To release binaries, I use gox and ghr
go get github.com/mitchellh/gox
go get github.com/tcnksm/ghr
mkdir -p pkg && cd pkg && gox ../...
ghr vX.Y.Z .
- Fork (https://github.com/SpringMT/gs-join)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the go test ./... command and confirm that it passes
- Run gofmt -s
- Create new Pull Request
See LICENSE