O'Reilly logo

Learn Windows PowerShell in a Month of Lunches by Don Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. The pipeline: connecting commands

In chapter 2, you saw that running commands in PowerShell is basically the same as running commands in any other shell: you type a command name, give it some parameters, and hit Return. What makes PowerShell so 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.

4.1. Connect one command to another: less work for you!

PowerShell connects commands to each other in something called a pipeline. The pipeline is simply a way for one command to pass, or pipe, its output to another command, so that the second command has something to work with.

You’ve already seen this in action when you run something like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required