Skip to main content
Version: v1.9.0

pass

Operator

pass copy input values to output

Synopsis

pass

Description

The pass operator outputs a copy of each input value. It is typically used with operators that handle multiple legs of the dataflow path such as fork and join.

Examples

Copy input to output

echo '1 2 3' | zq -z pass -

=>

1
2
3

Copy each input value to three parallel legs and leave the values unmodified on one of them

echo '"HeLlo, WoRlD!"' | zq -z '
fork (
=> pass
=> upper(this)
=> lower(this)
) | sort' -

=>

"HELLO, WORLD!"
"HeLlo, WoRlD!"
"hello, world!"