3 homepage: https://github.com/mikefarah/yq
5 yq: a lightweight and portable command-line YAML processor
8 To update or switch versions, run `webi yq@stable` or `webi yq@beta`, etc.
12 > `yq` is like [`jq`](../jq), meaning that it's like `sed` for YAML data - you
13 > can use it to slice and filter and map and transform structured data with the
14 > same ease that `sed`, `awk`, `grep` and friends let you play with text.
16 Usage: `yq e '<selector>' <filepath>`
21 echo 'name: John' | yq e '.name' -
27 echo '[ { "name": "John" }, { "name": "Jane" } ]' | yq e '.[].name' -
30 See <https://mikefarah.gitbook.io/yq/> for the docs.