1. GetLogIP
#!/bin/bash# $1 is the log filenameif [ "$1" == "" ]; then echo "param err, no log file" exitficat $1 | grep -a connect | awk -F "[|, ]" '{print $6}' | sort | uniq
本文共 235 字,大约阅读时间需要 1 分钟。
1. GetLogIP
#!/bin/bash# $1 is the log filenameif [ "$1" == "" ]; then echo "param err, no log file" exitficat $1 | grep -a connect | awk -F "[|, ]" '{print $6}' | sort | uniq
转载于:https://my.oschina.net/guyson/blog/149046