首页 > IT基础架构 > 网络安全 > apache日志中IP地址排序
#!/bin/bash
LANG=en.US
D=`date +"%Y%m%d"`
LOG="$1"
cat ${LOG}| awk '{print $1}' | sort | uniq -c | sort -rn>./countIP_${2}.log
exit 1
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-1004099/ ,如需转载,请注明出处,否则将追究法律责任。