Skip to content

dorianmariecom/dorian-csv-each

Repository files navigation

dorian-csv-each

Run a Ruby snippet for each CSV row.

Install

gem install dorian-csv-each

Also included in the aggregate gem:

gem install dorian

Usage

csv-each [options] [file ...] "ruby code"

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

Notes

  • Sets it to each row array. With --headers, it is a struct keyed by header name.

Examples

Print the second column

echo a,b,c | csv-each "puts it[1]"

Output:

b

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors