摘要: #!/bin/bash start=$(date +%s) # 1528437613 ping -c 10 baidu.com &> /dev/null end=$(date +%s) difference=$(( end - start )) echo $difference seconds. 运 阅读全文
posted @ 2018-12-18 17:06 Chuyio 阅读(741) 评论(0) 推荐(0)
摘要: #!/bin/bash SysVer=`cat /etc/redhat-release | awk -F'release' '{print $2}' | awk -F'[ .]+' '{print $2}'` if [ ! $SysVer -eq 6 ] then echo "This script 阅读全文
posted @ 2018-12-18 16:19 Chuyio 阅读(403) 评论(0) 推荐(0)