{ "name": "miller", "version": "6.22.0", "summary": "Miller (mlr): sort, filter, join and summarise CSV, TSV and JSON records by field name (static Go)", "category": "tool", "license": "BSD-2-Clause", "homepage": "https://miller.readthedocs.io/", "source": { "url": "https://proxy.golang.org/github.com/johnkerl/miller/v6/@v/v6.22.0.zip", "sha256": "9a20e269b9ff15a2dd40ba6c6b40c63f184fcadc09c134372d573ea73619f6b9" }, "watch": {"kind": "index", "url": "https://proxy.golang.org/github.com/johnkerl/miller/v6/@v/list", "regex": "(?m)^v([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "go", "args": ["./cmd/mlr"]}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/mlr --version | has -x 'mlr 6.22.0' && elf=$(readelf -l bin/mlr) && [ -n \"$elf\" ] && ! printf '%s\\n' \"$elf\" | has 'program interpreter' && t=$(mktemp -d) && printf 'host,disk,used\\nnas1,a,10\\nnas1,b,30\\nnas2,a,5\\n' > \"$t/d.csv\" && bin/mlr --icsv --ojson stats1 -a sum,max -f used -g host \"$t/d.csv\" > \"$t/s.json\" && has '\"used_sum\": 40' < \"$t/s.json\" && has '\"used_max\": 5' < \"$t/s.json\" && [ \"$(bin/mlr --icsv --ocsv --headerless-csv-output sort -nr used then head -n 1 then cut -f disk,used \"$t/d.csv\")\" = 'b,30' ] && bin/mlr --icsv --oxtab filter '$used > 8' then put '$gb = $used / 10' \"$t/d.csv\" | has '^gb *3$' && echo 'mlr: sums and maxima by group as JSON, a sort, a filter with a computed field'" }