BurntSushi/xsv

exclude command idea

Aperta

#61 aperta il 9 mar 2017

 (14 commenti) (1 reazione) (0 assegnatari)Rust (315 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (9730 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I think it would be handy to have a command to exclude matching columns from 2 csvs and print the remainder. For example:

source.csv:

id,boolean
1,yes
2,no
3,yes

exclusions.csv:

id,boolean
2,yes
4,no

syntax could be similar to join: xsv exclude <columns1> <input1> <columns2> <input2>, so

$ xsv exclude id exclusions.csv id source.csv
id,boolean
1,yes
3,yes

Guida contributor