BurntSushi/xsv

exclude command idea

Open

#61 aberto em 9 de mar. de 2017

Ver no GitHub
 (14 comments) (1 reaction) (0 assignees)Rust (315 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (9.730 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador