bash-utils
bash-utils copied to clipboard
optimization
log_info() { # Usage: log_info "this is the info log message" NOW=$(date +"%Y-%m-%d %H:%M:%S") echo "${NOW} [INFO] $*" }
use $* instead of $1
@ARC-yh 提供 PR 过来? 合并进去