Merge multiple files together (with array append) #737
Answered
by
mikefarah
coryroloff
asked this question in
Q&A
-
Hello! Is there a way to merge multiple files together while telling it to append arrays together without having to specify all of the files in the query? For example, there's "select(fileIndex == 0) *+ select(fileIndex == 1)" but for that to work you have to add the select(fileIndex) for each file. Is there a more generic query that will just look at the list of files you give it and automatically merge them all together while appending arrays? |
Beta Was this translation helpful? Give feedback.
Answered by
mikefarah
Mar 1, 2021
Replies: 1 comment 2 replies
-
https://mikefarah.gitbook.io/yq/usage/tips-and-tricks#merge-combine-all-documents-into-one |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
coryroloff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://mikefarah.gitbook.io/yq/usage/tips-and-tricks#merge-combine-all-documents-into-one