sed "s/.* \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/;s/[^0-9 ]*\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*/\1/" /www/wdlinux/nginx/logs/access.log  > /root/test 

cat /root/test | sort | uniq -c | sort -k1,1nr | head -10 > /root/test2

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-11-03
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2021-10-22
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案