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