效果:
实现代码:
$port_Group=cat .\ip.txt| group -p {$_.ToString().Substring(([string]$_).IndexOf(‘:‘)+1)} -AsH -AsS $port_Group.Item(‘80‘)
根据端口号给IP地址进行分组
原文:https://www.cnblogs.com/feiyucha/p/10890282.html