Pipe
The | character, which feeds one command’s output straight into the next command.
Not the same as a redirect
A redirect sends output to a file. A pipe sends it to another command — the difference between storing the result and continuing to work on it.
Where it bites
Only the left command’s normal output travels through the pipe; its errors go somewhere else and appear on your screen while the right-hand side receives nothing. An empty result from a pipeline usually means the first command failed, not that nothing matched.
In practice
$ cat log.txt | grep ERRORCovered in these lessons
Related terms
Where this comes up
Also written as pipe, |. Checked 2026-08-06.