BurntSushi/xsv

exclude command idea

Open

#61 opened on Mar 9, 2017

View on GitHub
 (14 comments) (1 reaction) (0 assignees)Rust (9,730 stars) (315 forks)batch import
enhancementhelp wanted

Description

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