4 ms·
Nice overview of jq! You may want to say demonstration rather than illustration though. I liked jq but liked json, a similar npm package, a little bit better f
by kylepdavis 7y ago
Nice overview of jq! You may want to say demonstration rather than illustration though.
I liked jq but liked json, a similar npm package, a little bit better for simple tasks.
You can find more about it here:
https://github.com/trentm/json https://github.com/trentm/json
As a JS dev I tend to have node installed anyhow so I just use a shell alias to wrap ‘node -pe’ these days. It’s not really for shell scripts but it’s great for quick every day usage. Plus you can use JS if needed instead of their DSL.
Here the code for the alias in my shell profile:
https://github.com/KylePDavis/dotfiles/blob/master/.profile#L90 https://github.com/KylePDavis/dotfiles/blob/master/.profile#...