Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
1–10 of 81 posts
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#2I see a lot of value on this tool, because I've been in the same situation as you. I can't thank you enough for this, a tool that I've been wanting to implement for so long.
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#3I see a lot of value on this tool, because I've been in the same situation as you. I can't thank you enough for this, a tool that I've been wanting to implement for so long.
thanks! i use it regularly. but there are surely many corner cases & bugfixes i haven't encountered yet. i'd be happy to get your feedback.
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#4If you work with this sort of data a lot, you might want to look at R.
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#5Not exactly the same thing, but I often use a tiny tool I wrote called shellql[1] that lets you just type in SQL like
cat foo.csv | shellql "select f1, count(*) from tbl where f2='thingiwant' group by f1 order by count(*) desc limit 5"
It has some limitations on the formats of CSV that it can take, namely that string fields have to be quoted, but you can see from the code that there's not much to it if you wanted to change that. It'd also be easy enough to take in multiple CSV files, join them together, etc.sqlite's pretty badass.
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#6Also check out Google's Crush-tools
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#7Or csvtool (written 2005, available in all good Linux distros):
https://github.com/Chris00/ocaml-csv/blob/master/examples/cs...
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#8I love csvkit[0] for this purpose
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#9I have my own little toolkit of csv parsing tools that do most of these (using python's csv module.)
I suspect most people who do deal with bulk CSV files all the time do as well. I'd be curious about how gracefully it handles large CSV files.
The lack of quoting support kills it for my use case however. I wrote my own tools, starting with csv_cut because cut(1) didn't do quoting.
Re: Miller is like sed, awk, cut, join, and sort for name-indexed data such as CSV
#10This is nice! It'd be great to download a .deb package for it.