Update node from another document #1817
-
|
From documentation it's possible to update node from another file, but it seems not possible to do the same with documents: $ echo -e "a: apples\n---\nb: bob" | yq 'select(di==0).a = select(di==1) | select(di==0)'
a: apples |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Oct 10, 2023
Replies: 1 comment
-
|
By default, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Hazzard17h
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default,
yqruns through documents one at a time (saves on memory), you can make it evaluate against all the documents by specifying eval-all/ea: