0.0
The project is in a healthy, maintained state
maps a csv file to another csv file
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-map

Map CSV rows to a new CSV stream with Ruby.

Install

gem install dorian-csv-map

Also included in the aggregate gem:

gem install dorian

Usage

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

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

Notes

  • Mutate it inside the snippet. With --headers, headers are preserved and it is a struct.

Examples

Uppercase one column

echo a,b,c | csv-map "it[1].upcase!"

Output:

a,B,c