BurntSushi/xsv

exclude command idea

Open

#61 创建于 2017年3月9日

在 GitHub 查看
 (14 评论) (1 反应) (0 负责人)Rust (9,730 star) (315 fork)batch import
enhancementhelp wanted

描述

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

贡献者指南