modern-unix
modern-unix copied to clipboard
Consider adding gdu and gron
Please consider adding the following:
- gdu (cool du alternative written in Go) https://github.com/dundee/gdu
- gron - good compliment for jq that makes JSON grepable. https://github.com/tomnomnom/gron
$ echo '{"foo":{"bar":"baz","foo":[1,2,3,4,5]}}' | gron
json = {};
json.foo = {};
json.foo.bar = "baz";
json.foo.foo = [];
json.foo.foo[0] = 1;
json.foo.foo[1] = 2;
json.foo.foo[2] = 3;
json.foo.foo[3] = 4;
json.foo.foo[4] = 5;
Transformation is reversible:
$ echo '{"foo":{"bar":"baz","foo":[1,2,3,4,5]}}' | gron | grep baz | gron -u
{
"foo": {
"bar": "baz"
}
}