[英]What is meaning of this PowerShell Script?
I am new in PowerShell Script.我是 PowerShell 脚本的新手。 I came across a statement but not able to understand the meaning of following statement:
我遇到了一个声明,但无法理解以下声明的含义:
Function-Name | %{ some x statement } | ? { some Y statement }
Anyone can guide me for this problem.任何人都可以指导我解决这个问题。 Thanks in Advance.
提前致谢。
After research, below is answer:经研究,答案如下:
%
%
is ForEach-Object是ForEach-Object
And和
?
?
is Where-Object是Where-Object
Note : To find such problem OR Cases use Get-Alias command.注意:要查找此类问题或案例,请使用Get-Alias命令。
Example:- Get-Alias %示例:-获取别名%
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.