Skip to content

Evaluate select filter like Jq #708

Answered by mikefarah
marcellodesales asked this question in Q&A

You must be logged in to vote

Ah I haven't (yet) added a != operator, it's on the list. Until then, you can use the not operator:

yq e '.. | .image | select( (. == null) | not)' -

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@marcellodesales

Answer selected by mikefarah
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