- 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.
- Node.js Design Patterns
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現(xiàn)
- Learn to Create WordPress Themes by Building 5 Projects
- Java游戲服務(wù)器架構(gòu)實戰(zhàn)
- Scala編程實戰(zhàn)(原書第2版)
- Nginx Lua開發(fā)實戰(zhàn)
- Learning R for Geospatial Analysis
- Hands-On GUI Programming with C++ and Qt5
- 一步一步學(xué)Spring Boot:微服務(wù)項目實戰(zhàn)(第2版)
- PHP 7 Programming Blueprints
- Java程序設(shè)計(項目教學(xué)版)
- 前端Serverless:面向全棧的無服務(wù)器架構(gòu)實戰(zhàn)
- Python自動化運維:技術(shù)與最佳實踐
- Netty 4核心原理與手寫RPC框架實戰(zhàn)
- Instant OpenCV for iOS