摘要:
#!/bin/bash #1.显示系统版本 check_system_version() { awk '{print $(NF-1)}' /etc/redhat-release } #2.更新yum源 check_yum() { tt=$(awk '{print $(NF-1)}' /etc/red 阅读全文
摘要:
#!/bin/bash time=`date|awk '{print $3"\\\\/"$2"\\\\/"$6}'` awk '$4~/'"${time}"'/{print $0}' access.log |awk '{ip[$1]++}END{for (i in ip)print i,ip[i]} 阅读全文