Skip to main content
Version: v1.18.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 branches of the pipeline 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 pipeline branches 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!"