-
there is https://github.com/mikefarah/yq which is jq for yaml
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
And if you don't like jq syntax, here's how you can use JSON in Bash using jello, a tool I wrote that works very similarly to jq but uses pure Python syntax:
-
dasel
Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
yq is great and so is dasel. Dasel is nice because it works uniformly across input types.
-
miller
Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
Another tool I've been meaning to get better at is mlr, which is a format-agnostic data viewing/manipulation cli tool. I hadn't heard of dasel before today. Had you heard of mlr, and if so, how would you compare dasel and mlr? While I would love to LEARNALLTHETOOLS, my brain doesn't have room for that many.
-
I just found https://github.com/mithrandie/csvq which is SQL for CSV files, which I thought was pretty cool.
-
-
https://jmespath.org/ (used by the AWS CLI tools)
-
Thanks again for the jq writeup and for the dasel pointer. I'll be adding dasel to my mental shortlist of tools to learn. Which is not such a short list....
-
-
-
I found this last week for CSV https://github.com/BurntSushi/xsv of course *after* spending several hours manipulating them by hand