3 ms·
I think we may be on the edge of that transformative moment though. I had spent 2 hours yesterday trying to sort CSV lines in bash. Decided to do so even thoug
by heavenlyblue 7y ago
I think we may be on the edge of that transformative moment though.
I had spent 2 hours yesterday trying to sort CSV lines in bash. Decided to do so even though I have a nice strongly typed framework to manage tuples, which is slower than bash.
I always forget that the -k argument requires 2 numbers if you want to sort by only one column.
Then LC_ALL.
These are not the things that are so easy to debug against.
So in the end it would have been faster to use Python.
There’s xsv-rs, but it doesn’t provide the same semantics or power I have in the framework.
Point is, I think there’s some space for novelty in UNIX tools. Especially given the research in DSLs for defining the transformations of tuples.
- lapnitnelav 7y agoYou ever considered using CSVKit? It does a good job at being a subset of shell tools tailored to structured data as CSV/TSV and such.
- heavenlyblue 7y agoSad thing is, I am not sure at this point if my framework is more powerful than this or not. I think mine preserves the semantics of “sql execution plan” better than CSVKit, but I might as well be wrong. I did not know about CSVKit three years ago; but I don’t think it would take a prof. developer to build it too much time either.