web日志中ip请求次数统计shell脚本代码
#!/bin/sh
echo "input log file path"
read path
pa="$path"
cat $pa |awk '{print $1}'|sort -nr |uniq -c |sort -nr |more
#!/bin/sh
echo "input log file path"
read path
pa="$path"
cat $pa |awk '{print $1}'|sort -nr |uniq -c |sort -nr |more