Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 735 Bytes

pass.md

File metadata and controls

43 lines (36 loc) · 735 Bytes

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' | super -z -c 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!"' | super -z -c '
  fork (
    => pass
    => upper(this)
    => lower(this)
) |> sort' -

=>

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