BurntSushi/xsv

exclude command idea

Open

#61 geöffnet am 9. März 2017

Auf GitHub ansehen
 (14 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (315 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (9.730 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide