3 ms·
Having used gron in bash scripts, I think "…is much easier to manipulate […] using gnu utils" is overselling it somewhat. You can `grep` through it, yes. But
by btschaegg 3y ago
Having used gron in bash scripts, I think "…is much easier to manipulate […] using gnu utils" is overselling it somewhat.
You can `grep` through it, yes. But since the output is still structured to be Javascript (which makes it nice in some more immediate ways if you're working interactively) makes it tricky to deal with with e.g. `awk` -- you'd still have to parse the JS line and implement string unescaping, which still makes it more complicated than necessary. And if you work e.g. on JSON in a bash variable, running `gron -v` also is cumbersome enough for me to want to use another tool.
So, I still like `gron`, I just think it has a rather small niche. One that maybe could be a bit larger if there was a way for it to output delimited records with user-specified delimiters (provided you know the output enough to be sure they don't appear in any strings).