【发布时间】:2013-03-18 10:13:18
【问题描述】:
我是 PowerShell 新手,只是想弄清楚它是如何工作的。
那么,我该如何编写这段代码:
Get-ChildItem C:\ | Sort-Object Length
作为多行代码?我试过这个:
$child_items = Get-ChildItem C:\
Sort-Object $child_items Length
但它没有工作。我得到:
Sort-Object : A positional parameter cannot be found that accepts argument 'Length'.
【问题讨论】:
标签: powershell pipe