Union
This operator is used to combine different results together.
Combine scalars
Running
yq --null-input '1, true, "cat"'will output
1
true
catCombine selected paths
Given a sample.yml file of:
a: fieldA
b: fieldB
c: fieldCthen
yq '.a, .c' sample.ymlwill output
fieldA
fieldCLast updated
Was this helpful?