使用Group-Object进行分组
摘要:对不同类型文件分组,并分别统计其数量get-childitem | group-object extension -noelementCount Name----- ---- 1 .android 9 1 .rnd找出数量多于1个字符"a", "b", "c", "c", "d" | group-object -noelement | where {$_.Count -gt 1} Count Name ----- ---- 2 c返回唯一值"a", "b"
阅读全文
posted @
2013-02-24 14:40
momingliu11
阅读(362)
推荐(0) 编辑