Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 689 Bytes

merge.md

File metadata and controls

29 lines (23 loc) · 689 Bytes

Operator

merge — combine parallel pipeline branches into a single, ordered output

Synopsis

( => ... => ...) |> merge <expr> [, <expr>, ...]

Description

The merge operator merges inputs from multiple upstream branches of the pipeline into a single output. The order of values in the combined output is determined by the <expr> arguments, which act as sort expressions where the values from the upstream pipeline branches are forwarded based on these expressions.

Examples

Copy input to two pipeline branches and merge

echo '1 2' | super -z -c 'fork (=>pass =>pass) |> merge this' -

=>

1
1
2
2