摘要:
判断文件内容是否改变: 1)md5值判断 2)diff 判断 #添加日志时间戳 function fn_showlog() { local curtime; curtime=`date +"%Y%m%d-%H:%M:%S"` echo "$curtime $1"; } #判断文件内容是否一致 fun 阅读全文
摘要:
package tools import ( "bufio" "errors" "fmt" "github.com/Sirupsen/logrus" "go.pkg.okcoin.com/devops/agent/internal/constant" "os/exec" "strings" ) /* 阅读全文