Skip to content

dorianmariecom/dorian-csv-all

Repository files navigation

dorian-csv-all

Run one Ruby snippet against the whole CSV input.

Install

gem install dorian-csv-all

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • Sets it to the parsed CSV rows. With --headers, rows are exposed as structs keyed by header name.

Examples

Print the second cell from the first row

echo a,b,c | csv-all "puts it.first[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