Skip to content

Write Assertion in yq? #2209

Answered by mikefarah
guettli asked this question in Q&A
Discussion options

You must be logged in to vote

You can do that using the -e / --exit-status flag:

yq -e '.person.name == "Mike Wazowsk" ' data1.yaml

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guettli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants