随笔分类 - script
摘要:#!/bin/bash# judge OS OS_release=`cat /etc/redhat-release | awk '{print $(NF-1)}'|cut -c 1`# To obtain current network card name,Do not include loNETW
阅读全文
摘要:每日切一个日志 #!/bin/shLOG_PATH=/home/test/nginx/logsNEW_LOG_PATH=/home/test/nginx/dayslogNGING_PID=$(cat /home/test/nginx/logs/nginx.pid)DATE=$(date -d "ye
阅读全文