Chapter 6. The pipeline: connecting commands
In chapter 4, you learned that running commands in PowerShell is the same as running commands in any other shell: you type a command name, give it some parameters, and hit Enter. What makes PowerShell special isn’t the way it runs commands, but rather the way it allows multiple commands to be connected to each other in powerful, one-line sequences.
6.1. Connect one command to another: less work for you
PowerShell connects commands to each other using something called a pipeline. The pipeline provides a way for one command to pass, or pipe, its output to another command, allowing that second command to have something to work with.
You’ve already seen this in action in commands such as Dir | More ...
Get Learn Windows PowerShell in a Month of Lunches, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.