3
The PowerShell Pipeline – How to String Cmdlets Together
Almost all operating systems (OSs) have the concept of a pipeline, allowing the output of one process to be fed into the input of the next. This concept is credited to Douglas McIlroy in 1973 when he was working on version 3 of Unix at Bell Labs. This initial implementation envisaged the output of every command as a file-like structure, on which the next command could operate.
This chapter will explain how PowerShell adheres to this vision and differs from it. We’ll start by exploring the pipeline concept, then look at some basic ways of manipulating the contents of the pipeline before taking a medium-depth dive into how the pipeline works in PowerShell, and how we can troubleshoot it ...
Get PowerShell 7 Workshop 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.