11 · The Command Line

Pipe

Feed one command into the next

The vertical-bar symbol sends one command's output straight into another as input, chaining small tools into bigger ones.

Concrete example

“cat log.txt | grep error” lists the file, then keeps only the lines containing “error.”

Why it matters

How a few simple tools combine into surprisingly powerful one-liners.