- cross-posted to:
- linux@lemmy.ml
- programming@programming.dev
- cross-posted to:
- linux@lemmy.ml
- programming@programming.dev
You must log in or register to comment.
I use jq almost every day, and I can admit its syntax is a bit cumbersome. Will give this a try.
Love this. Always interesting to see novel ways of querying data in the terminal, and I agree that jq’s syntax is difficult to remember.
I actually prefer nu(shell) for this though. On the lobste.rs thread for this blog, a user shared this:
| get license.key -i | uniq --count | rename license This outputs the following: ╭───┬──────────────┬───────╮ │ # │ license │ count │ ├───┼──────────────┼───────┤ │ 0 │ bsd-3-clause │ 23 │ │ 1 │ apache-2.0 │ 5 │ │ 2 │ │ 2 │ ╰───┴──────────────┴───────╯