0.0
The project is in a healthy, maintained state
evaluates some ruby code on all lines 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-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