1.0.1 • Published 11 years ago
csv-join v1.0.1
csv-join
join two cavs based on a "foreign key" relationship
note: source.csv gets buffered into memory in the current implementation. a purely streaming version would be cool. if you have ideas for this open an issue!
usage
csv-join <source> <source-column> <target> <target-column>sourceand target can be either paths to local files or http/https links
example
given the following:
source.csv:
a,b,c
1,2,3target.csv:
id,name
1,bob
2,bill
3,carlthen running csv-join source.csv 'a' target.csv 'id' would result in:
id,name,a,b,c
1,bob,1,2,3
2,bill,,,
3,carl,,,