|
|
|
|
|
by gpvos
445 days ago
|
|
I tend to use csvkit for more complicated transformations, and OCaml's csvtool[0] for the simpler ones. For intermediate transformations I wrote my own csved[1] script, which reads for every line of a CSV reads it into @F, applies a Perl expression to that array, then writes it out. With the -h option you can also use the %F hash to access fields by name. It's very fast. It looks like xsv and xan are in the "csvkit but faster" niche, which is nice, but now I must learn another set of commands. And there are now many more recent utilities called csvtool, including a Perl and a Python one. [0] https://github.com/Chris00/ocaml-csv [1] https://github.com/gpvos/csved |
|