Csvkit - command line utilities for working with csv files
csvkit.readthedocs.org
Csvkit - command line utilities for working with csv files
1–10 of 18 posts
Re: Csvkit - command line utilities for working with csv files
#2Re: Csvkit - command line utilities for working with csv files
#3By that i mean, something that could read the header line in a CSV and automatically generate those variables for each line.
Demonstration:
$ cat test.csv
Field1,Field2
1,2
3,4
5,6
$ csvawk '{print Field1+Field2}' test.csv
3
7
11Re: Csvkit - command line utilities for working with csv files
#4Anyone know of a similar tool based on Ruby?
Re: Csvkit - command line utilities for working with csv files
#5Is there a CSV AWK? By that i mean, something that could read the header line in a CSV and automatically generate those variables for each line. Demonstration: $ cat test.csv Field1,Field2 1,2 3,4 5,6 $ csvawk '{print Field1+Field2}' test.csv 3 7 11
Re: Csvkit - command line utilities for working with csv files
#6Anyone know of a similar tool based on Ruby?
Re: Csvkit - command line utilities for working with csv files
#7Re: Csvkit - command line utilities for working with csv files
#8h f
Re: Csvkit - command line utilities for working with csv files
#9Re: Csvkit - command line utilities for working with csv files
#10CSV data is easily imported into R where you can easily analyze it, transform it, plot it -- everything from a unified command-line interface (there also exist GUIs, but I haven't used them). reshape and plyr packages are worth learning too. There's also an emacs package for interacting with R (ESS), and it significantly eases interaction; works also under Win, and is what I use in my work with R.
TL;DR: nice project, but it's a toy compared to what you can get from R. (Re unix philosophy: I'm the type of person that likes to get the job done and I therefore very often choose pragmatism over idealism.)