3 ms·
Most likely because it contradicts most people's experience, some CSVs can't be parsed with cli tools, but most of them can be, and it's much easier than writin
by devenvdev 5y ago
Most likely because it contradicts most people's experience, some CSVs can't be parsed with cli tools, but most of them can be, and it's much easier than writing code that does the same. So what the parent commenter says is true, just not pragmatic.
- oblio 5y agoIt is pragmatic with a minor tweak. https://csvkit.readthedocs.io/en/latest/ https://csvkit.readthedocs.io/en/latest/ https://github.com/BurntSushi/xsv https://github.com/BurntSushi/xsv Heck, even sqlite has some stuff to help with processing CSV files: https://www.sqlite.org/csv.html https://www.sqlite.org/csv.html
- philwelch 5y agocsvkit and SQLite were always too slow whenever I tried to use them for this sort of thing. I don’t remember if I tried xsv. I do think I ended up converting most of my CSVs to TSV, or exporting them as TSV in the first place.