by shigemk2

当面は技術的なことしか書かない

yq

YAML版 jq

foo:
  bar: test

こんな感じのYAMLから、barの値を取り出す。

cat input.yml | yq .foo.bar