Windows Powershell分析和比较管道结果

丶你微笑时好美丶 18 0 PDF 2021-02-01 14:02:06

使用Measure-Object和Compare-Object可以统计和对比管道结果。Measure-Object允许指定待统计对象的属性。Compare-Object可以对比对象前后的快照。 统计和计算 使用Measure-Object可以对对象的属性求最小值、最大值、平均值、和。例如要查看当前目录文件占用空间的情况。 PS C:Powershell> ls | measure length Count : 19 Average : Sum : Maximum : Minimum : Property : length PS C:Powershell> ls | measure le

用户评论
请输入评论内容
评分:
暂无评论