[root@Cobbler logs]# awk 'BEGIN{print "IP地址","访问流量","访问次数"}{a[$1]++;b[$1]+=$10}END{for (i in a) print i,a[i],b[i]|"sort -rnk3"}' access_log
IP地址 访问流量 访问次数
172.16.1.101 982 844856636
172.16.1.62 976 476278648
172.16.1.21 976 476278648
172.16.1.168 976 476278648
172.16.1.100 6 368578459
172.16.1.104 6 368578451

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-08-24
  • 2021-08-19
  • 2022-12-23
猜你喜欢
  • 2021-11-15
  • 2021-11-03
  • 2022-02-10
  • 2021-11-30
  • 2021-09-14
  • 2022-01-24
  • 2021-07-13
相关资源
相似解决方案