4 ms·
This looks like a great resource. The tools you'd like to have for a specific problem are often quite un-googlable. So you either need complex hacks to get infe
by dancek 9y ago
This looks like a great resource. The tools you'd like to have for a specific problem are often quite un-googlable. So you either need complex hacks to get inferior tools to work or you spend an hour googling the tools for a tiny problem.
Of course, it would be even better if you could easily tell which of the dozen JSON query tools is the best choice for the task at hand, or which you should code if you only want to ever use one of them.
In fact I'd love if someone would like to share their set of tried-and-true tools. Personally I mostly go with the POSIX tools, plus jq or gawk on occasion (but I have to read their docs every single time...).
- tannhaeuser 9y agoNit: awk is a POSIX tool, and has multiple implementations that you've probably used (Debian/Ubuntu comes with mawk, and Mac OS with nawk). [1]: http://pubs.opengroup.org/onlinepubs/009695399/utilities/awk.html http://pubs.opengroup.org/onlinepubs/009695399/utilities/awk...
- jwilk 9y agoBesides mawk and gawk, Debian ships also the original awk: https://www.cs.princeton.edu/~bwk/btl.mirror/ https://www.cs.princeton.edu/~bwk/btl.mirror/
- tannhaeuser 9y agoYes, and it works well on Debian. But I can't recommend switching to gawk on Ubuntu. [1]: https://askubuntu.com/questions/1011414/gawk-is-crashing-for-complex-regexp-when-lang-is-set-to-utf-8-on-16-04 https://askubuntu.com/questions/1011414/gawk-is-crashing-for...
- dancek 9y agoTo nitpick even more, gawk (GNU Awk) is a superset of POSIX Awk. I'm not very familiar with the differences, but I always use specifically gawk---I got too annoyed with some of the BSD userland that ships with macOS, and learned to prefer GNU versions.