Rjoin

A tool for joining CSV data on command line.

Dual-licensed under MIT or unlicense

Documentation

https://docs.rs/rjoin

Usage

Add this to your Cargo.toml:

toml [dependencies] rjoin = "0.1.0"

add this to your crate root:

rust extern crate rjoin;

Installation

The binary name for rjoin is rj.

bash $ cargo install rjoin

(don't forget to add $HOME/.cargo/bin to your path).

Why should you use rjoin?

Why shouldn't you use rjoin?

Example

Let's suppose we have the following data:

bash $ cat left color,blue color,green color,red shape,circle shape,square

bash $ cat right altitude,low altitude,high color,orange color,purple To get the lines with the common key:

bash $ rj left right color,blue,orange color,blue,purple color,green,orange color,green,purple color,red,orange color,red,purple

Some comments:

To get the lines with the unmatched key in both files:

bash $ rj -lr left right altitude,low altitude,high shape,circle shape,square

Contributing

Any kind of contribution (e.g. comment, suggestion, question, bug report and pull request) is welcome.

Acknowledgments

A big thanks to BurntSushi for his excellent work.