0.0
The project is in a healthy, maintained state
evaluates some ruby code on each line of the csv input
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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