BurntSushi/xsv

exclude command idea

オープン

#61 opened on 2017/03/09

 (14 件のコメント) (1 件のリアクション) (0 人の担当者)Rust (315 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (9,730 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド