Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: