simon / yq

Last active 1 month ago

yq.md Raw

yq

  • Render (explode) yaml file using anchors
yq 'explode(.)' < inputfile.yaml
  • Select a value from a file containing multiple yaml documents
cat somefile.yaml | yq -N '.data.values  | select(. != null)'