-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge arrays #680
Comments
Okay, so let's say you have your people data over at A note first, there are two possible interpretations of what you want: one in which you want the element Under that assumption, what you want is to pair the elements of your two arrays with each other, then add them together. On jq, you can "zip" them with the
If, instead, you want to match them by the
Hope this helps! |
Thanks for helping....
...cant see it in docs either.... |
Oh, right, sorry,
|
You are a life saver! |
By the way this also works without
|
To zip the two together constructively using jq 1.4:
|
I have two files:
and
How do I merge these to get the result:
The text was updated successfully, but these errors were encountered: