BurntSushi/xsv

Select columns based on regex

Open

#155 aperta il 28 ott 2018

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Rust (315 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (9730 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I have a pretty unwieldy CSV file with a ton of columns (~300000) all with quite long column names. I'd really like to be able to select the columns using a regex rather than having to attempt to figure out a set of ranges from the header. Is this a feature you think would fit in xsv?

I'm not sure exactly what the input would look like; perhaps an additional flag to indicate that the selection(s) are regexes?

Thanks so much for all your work, by the way! :smiley:

Edit: forgot to say, I'd be happy to have a go at implementing this!

Guida contributor