1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00
yq/pkg/yqlib/doc/Union.md
Mike Farah f7f8bed955 wip
2020-12-27 09:55:21 +11:00

363 B

This operator is used to combine different results together.

Combine scalars

Running

yq eval --null-input '1, true, "cat"'

will output

1
true
cat

Combine selected paths

Given a sample.yml file of:

a: fieldA
b: fieldB
c: fieldC
'': null

then

yq eval '.a, .c' sample.yml

will output

fieldA
fieldC