官术网_书友最值得收藏!

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:

PowerShell Pipeline

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:

PowerShell Pipeline

Many script authors also prefer to indent the succeeding lines a little bit to emphasize that these are all part of the same block.

主站蜘蛛池模板: 昌宁县| 靖边县| 株洲县| 二连浩特市| 龙山县| 昆山市| 东乌珠穆沁旗| 图片| 鹤庆县| 通城县| 乌兰察布市| 金沙县| 乌兰察布市| 来凤县| 宁蒗| 淮滨县| 西盟| 炎陵县| 略阳县| 孝义市| 沈丘县| 景泰县| 陈巴尔虎旗| 宁明县| 仁布县| 辽源市| 永安市| 江西省| 广德县| 横峰县| 延寿县| 芜湖县| 视频| 新干县| 奉贤区| 修武县| 信丰县| 喀喇沁旗| 临城县| 泽州县| 定西市|