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

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.

主站蜘蛛池模板: 大兴区| 丽江市| 谢通门县| 阿坝县| 碌曲县| 阿合奇县| 股票| 兰坪| 南投市| 镇原县| 尉犁县| 水城县| 广德县| 河北区| 南部县| 化州市| 宿迁市| 交城县| 竹山县| 调兵山市| 普定县| 邵阳市| 宜兴市| 那曲县| 汝城县| 南皮县| 怀化市| 澎湖县| 贞丰县| 天气| 荔波县| 平罗县| 瑞安市| 襄汾县| 鹤庆县| 左权县| 叙永县| 伽师县| 蒙城县| 闵行区| 根河市|