program Verified current stable Not installed? Filesystem

Program / Pass File Contents To Another Program Via Stdin

Pass File Contents To Another Program Via Stdin

Program command syntax to pass file contents to another program via stdin. Copyable examples, output expectations, and common mistakes.

$
Terminal
cat path/to/file | program

Command Breakdown

What each part is doing

cat
Base Command
The executable that performs this operation. Here it runs Program before the shell applies any redirect operators.

Alternative Approaches

Comparable commands in other tools

Alternative filesystem tools for the same job.