Use { and } to collect the output of multiple programs. From man bashFor instance, an example of this is { printf " hello " ; printfecho "one; world\n"echo ;two; } > greeting|program. Leave a space after { and before } and ensure there is a semicolon after the last command within the braces.