curTime

  • Linux获取时间赋值给变量

    使用date命令可以获取系统时间 将时间 时 分 秒 赋给变量curTime,注意 date 和 双引号之间有空格 curTime=$(date “+%H%M%S”) echo $…

    智能运维 2022年6月19日