Skip to content

dorianmariecom/dorian-csv-pluck

Repository files navigation

dorian-csv-pluck

Select columns from CSV input.

Install

gem install dorian-csv-pluck

Also included in the aggregate gem:

gem install dorian

Usage

csv-pluck [options] key [key ...] [file ...]

Run csv-pluck -h for generated option details and csv-pluck -v for the installed version.

Notes

  • Keys can be zero-based column indexes or header names. --print-headers/-p includes a generated header row.

Examples

Print the second column

echo a,b,c | csv-pluck 1

Output:

b

Pluck by header

printf 'id,name\n1,Dorian\n' | csv-pluck name

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors