3 ms·
jq is honestly one of my favorite tools ever. Super powerful yet simple. I've written some relatively complex programs with it, e.g. this one [1] I just wrote
by maddyboo 6y ago
jq is honestly one of my favorite tools ever. Super powerful yet simple.
I've written some relatively complex programs with it, e.g. this one [1] I just wrote to manipulate the output from neuron [2] to generate index files based on tags. It's probably overkill/not as efficient as it could be, but I wanted to be able to expand upon it later.
I think once you grok the basics, which can be a bit confusing at first, you can accomplish some amazing things with the help of a few of the more advanced features like reduce, to_entries/from_entries, etc.
I really wish it was more actively developed, I feel like it actually has potential to be a semi-general-purpose functional programming language.
1: https://gist.github.com/b50a047115d1dcf1f15c16a6f7b71e3c https://gist.github.com/b50a047115d1dcf1f15c16a6f7b71e3c
2: https://github.com/srid/neuron https://github.com/srid/neuron