- PowerShell for SQL Server Essentials
- Donabel Santos
- 164字
- 2021-07-23 20:32:25
PowerShell Pipeline
A pipeline is defined in www.TheFreeDictionary.com as follows:
"a linked series of pipes with pumps and valves for flow control, used to transport crude oil, water, etc., esp. over great distances."
I think this definition is very fitting to a pipeline in PowerShell. Instead of crude oil or water, what PowerShell transports is pieces of information. PowerShell also has these pumps and valves for flow control—we will see more of these in the later chapters.
The pipe symbol in PowerShell is |
, also called a bar. You can pipe multiple cmdlets together. When you pipe these cmdlets, the output of one cmdlet becomes the input of the next cmdlet:

When you are writing your scripts, you may want to add a new line after the pipe and continue typing the next cmdlet on the new line:

Many script authors also prefer to indent the succeeding lines a little bit to emphasize that these are all part of the same block.
- INSTANT Mock Testing with PowerMock
- LabVIEW Graphical Programming Cookbook
- HBase從入門到實戰(zhàn)
- 匯編語言程序設(shè)計(第2版)
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)習(xí)題解答與上機指導(dǎo)
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- C語言程序設(shè)計
- Creating Stunning Dashboards with QlikView
- Java EE企業(yè)級應(yīng)用開發(fā)教程(Spring+Spring MVC+MyBatis)
- 工業(yè)機器人離線編程
- Learning Nessus for Penetration Testing
- ABAQUS6.14中文版有限元分析與實例詳解
- Access數(shù)據(jù)庫應(yīng)用教程(2010版)
- 算法超簡單:趣味游戲帶你輕松入門與實踐
- PHP程序設(shè)計經(jīng)典300例