#!/bin/bash
LANG=en.US
D=`date +"%Y%m%d"`
LOG="/app/apache/logs/web-$1.log"
cat ${LOG}| awk '{print $1}' | sort | uniq -c | sort -rn>./countIP_${1}.log
exit 1
[@more@]#!/bin/bash
LANG=en.US
D=`date +"%Y%m%d"`
LOG="/app/apache/logs/web-$1.log"
cat ${LOG}| awk '{print $1}' | sort | uniq -c | sort -rn>./countIP_${1}.log
exit 1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-1007442/ ,如需转载,请注明出处,否则将追究法律责任。