首页 > 代码库 > 求指导

求指导

文件 ip.txt

192.168.0.1 zhangxc
192.168.0.1 zhangxc1
192.168.0.1 zhangxc3
192.168.0.2 zhangc
192.168.0.2 zhangc1
192.168.0.3 zhangc
192.168.0.3 zhangc
192.168.0.3 zhangxc
192.168.0.3 zhangxc
192.168.0.0 zhang
192.168.0.5 zhang
192.168.0.0 zhang
192.168.0.0 zhang
192.168.0.0 zhang2

要求输出如下

192.168.0.1 3

192.168.0.2 2

192.168.0.3 2

192.168.0.5 1

192.168.0.0 2

即ip所对应的用户数

求指导shell如何编写

求指导