Hacker News new | ask | show | jobs
by brundolf 2010 days ago
At that point why not write a Python script?
2 comments

jq is a much, much more expressive language than Python at applying similar operations to the list of inputs (with fanout!).
How about combining the best of both worlds: https://github.com/mwilliamson/jq.py
Yeah, jq has some of the benefits that APL users like to talk about.
I'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 ;-)

Shameless 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

[1]https://blog.kellybrazil.com/2020/03/25/jello-the-jq-alterna...