[Shell] Combine the standard output of multiple commands

Created on November 30, 2026

Group commands inside braces to pipe their output together. In this example, two echo commands produce one line each, and wc -l counts the combined lines.

{ echo Hello; echo World; } | wc -l

Output

2
Shell command