https://github.com/vi/csvcatrow
A CLI tool to concatenate rows from many csv files by matching columns of each
https://github.com/vi/csvcatrow
Last synced: 11 months ago
JSON representation
A CLI tool to concatenate rows from many csv files by matching columns of each
- Host: GitHub
- URL: https://github.com/vi/csvcatrow
- Owner: vi
- Created: 2022-10-06T14:38:30.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-19T17:22:18.000Z (over 3 years ago)
- Last Synced: 2025-04-15T14:13:27.522Z (about 1 year ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# csvcatrow
Tool for concatenating many small csv files into one big table row-wise, analogue of [`xsv cat rows`][1], but handling reordered or different columns.
```
$ cat 1.csv
a,b
1,2
$ cat 2.csv
b,a
2,1
$ cat 3.csv
a,b,c
1,2,3
$ csvcatrow 1.csv 2.csv 3.csv
a,b,c
1,2,
1,2,
1,2,3
```
Install it with `cargo install --path .` (or `cargo install csvcatrow`) or download pre-built execitables from [Github Releases][2].
[1]:https://github.com/BurntSushi/xsv
[2]:https://github.com/vi/csvcatrow/releases/
# See also
[qsv's `cat rowskey`][3] subcommand.
[3]:https://github.com/jqnatividad/qsv/blob/fd4dd17272c06e085045929d59620fc0a5c4b04e/src/cmd/cat.rs#L18