>_ IzzyLab

Topic breakdown

yq (mikefarah's implementation, v4) uses the same path language as jq, but applied to YAML: a nested value is accessed with dot notation from the root, appending each level of nesting with a .. The tool prints a scalar value without extra quotes, which is convenient to redirect into a file. The mental model: a YAML document is a tree, and the path expression simply descends its branches to the right leaf.

What's checked

  1. the value of service.port in /root/port.txt

What it looks like