We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
( a, b, ... )
Describe the bug
Version of yq: 4.35.2 Operating system: linux Installed via: compiled from latest source
Input Yaml data.yml:
- a: a1 b: b1 - a: a2 b: b2
Command
yq '.[] | (.a , .b)' data.yml
Actual behavior
a1 a2 b1 b2
Expected behavior
a1 b1 a2 b2
Note that jq works like the expected behavior.
jq
The text was updated successfully, but these errors were encountered:
workaround:
yq '.[] | [.a ,.b] | .[]' /tmp/test.yaml
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Version of yq: 4.35.2
Operating system: linux
Installed via: compiled from latest source
Input Yaml
data.yml:
Command
Actual behavior
Expected behavior
Note that
jq
works like the expected behavior.The text was updated successfully, but these errors were encountered: