Lesson 12: Connecting Commands with Pipes
Here's where the terminal's magic happens. The `|` (pipe) sign takes the output of one command and feeds it straight into the next. That's how you connect small tools into one big solution.
A pipe is like a tube: what comes out of one command flows straight into the next.
- Pipe (|)
- A sign that passes one command's output as input to the next
- Standard output
- The text a command prints, which can be passed onward
- wc -l
- A command that counts lines in the text it receives