pipe

The | operator, which connects one command's standard output to the next command's standard input so they run together.

In more detail

Each command in the chain does one job, and the shell runs them together, streaming data from one to the next. Only standard output goes through the pipe; error messages still go to the terminal.

Examples

grep GET access.log | cut -d' ' -f4 | sort | uniq -c
git cat-file -p HEAD | git hash-object -t commit --stdin

Related terms

Taught in

References

Certification courses