-
Lets say I have an input array yml as
I would like like to modify it by appending a word
I was trying this but all elements get updated with first element. |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Apr 19, 2021
Replies: 1 comment
-
Use the relative update yq eval '(.a.[]) |= "japan-"+.' sample.yml |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dmilan77
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the relative update
|=
, not at a machine with yq, but it will be something like:yq eval '(.a.[]) |= "japan-"+.' sample.yml