filter from array and append to another file #712
Answered
by
mikefarah
MarekGajdosik
asked this question in
Q&A
-
Hello, I am completely lost in this new syntax and it seems to me I need some help. Example:
And I need to select b, c, d where b == "21" and append it to file2.yml into same structure
I tried following to select what I need (but I get empty response):
and I have no idea how can I append
to the end of "a" of file2.yml |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Feb 5, 2021
Replies: 1 comment 1 reply
-
Synopsis:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MarekGajdosik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Synopsis:
ea
(or eval-all) so that both yaml files are read into memory and the expression is run once (by defaultyq
runs the expression once per document to lower memory consumption).fi
operator to filter out nodes by the file index