3 ms·
And this post didn't mentioned custom functions, where things are getting more interesting :-) https://acalustra.com/jq-functions-modules-and-dotfiles-tips.htm
by eloycoto 6y ago
And this post didn't mentioned custom functions, where things are getting more interesting :-)
https://acalustra.com/jq-functions-modules-and-dotfiles-tips.html https://acalustra.com/jq-functions-modules-and-dotfiles-tips...
- brundolf 6y agoAt that point why not write a Python script?
- eloycoto 6y agoI'm not disagree with you, but in this case all stored in custom dotfiles, as functions, easy to use IMHO than a custom Python script. But I use a lot JQ, so it's super easy for me ;-)
- kbrazil 6y agoShameless plug, but I created jello[0] to give you the ease of parsing json in bash, but using python syntax[1] [0]https://github.com/kellyjonbrazil/jello https://github.com/kellyjonbrazil/jello [1]https://blog.kellybrazil.com/2020/03/25/jello-the-jq-alternative-for-pythonistas/ https://blog.kellybrazil.com/2020/03/25/jello-the-jq-alterna...
- naniwaduni 6y agojq is a much, much more expressive language than Python at applying similar operations to the list of inputs (with fanout!).
- fiddlerwoaroof 6y agoYeah, jq has some of the benefits that APL users like to talk about.
- Too 6y agoHow about combining the best of both worlds: https://github.com/mwilliamson/jq.py https://github.com/mwilliamson/jq.py