Replies: 1 comment
-
You can do it like so:
Explanation:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Noob question, most likely a FAQ:
I have input like this:
I want to convert it into this:
i.e. the original keys from the
data.foo
with the values ofthis
from their original values.Seemingly simple but I can’t figure out the right expression.
The actual input obviously has other keys and values and a couple of thousand entries. It would be easy to do with a script, but I really would like to know how to do it with yq! :-)
Beta Was this translation helpful? Give feedback.
All reactions