awk分组统计

https://www.runoob.com/linux/linux-comm-awk.html
https://www.cnblogs.com/zhoujishan/p/13509527.html
https://www.cnblogs.com/A121/p/10621213.html

登录失败的IP计数

lastb|awk '{x[$3]++;} END{for(i in x) print(i ":" x[i])}'
posted @ 2022-08-25 10:52  shenshu  阅读(19)  评论(0编辑  收藏  举报