3 ms·
XSV [0] can also pretty-print (minus the colors), but that's just the tip of the iceberg as far as what it can do. It's very handle for quick statistical analys
by ComputerGuru 5y ago
XSV [0] can also pretty-print (minus the colors), but that's just the tip of the iceberg as far as what it can do. It's very handle for quick statistical analysis of CSV input.
[0]: https://github.com/BurntSushi/xsv https://github.com/BurntSushi/xsv
- flusteredBias 5y agoI love xsv! I mention in the readme that command line data manipulation tools are great compliments to tv. https://github.com/alexhallam/tv#tools-to-pair-with-tv https://github.com/alexhallam/tv#tools-to-pair-with-tv
- baggiponte 5y agothat's exactly the comment I was looking for! xsv is super powerful and I think you might both draw inspiration from one another. I read above that tv reads everything into memory: maybe you can exploit some xsv tricks to avoid that. I feel tv looks great to visualise the outcome at the end of a pipeline, perhaps with xsv. I am no Ruby expert either, but this can become a cool Homebrew binary: people on macOS will use it too!
- flusteredBias 5y agoI will add some Homebrew installation instructions. That is now an open issue. I want this tool to be highly accessible. Again, xsv is the best. I like the idea of small utilities that specialize in a specific task. From the Unix philosophy: > Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features".
- baggiponte 5y agoSure! I completely understand and I am really glad you made this great tool to display the data in such a beautiful format. Maybe there can also be a “—head” flag to display only the top n rows by default, given that the data is read into memory?