Skip to content

dorianmariecom/dorian-csv-map

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors