cmd1 | cmd2

Category: I/O Redirection & Pipes

cmd1 | cmd2

Pipe stdout of cmd1 as stdin to cmd2

Connects two commands: the output of cmd1 becomes the input of cmd2. Pipes let you chain tools together.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.