shell 中可以for 循环的时间加减日期格式
时间:2018-11-21 19:16:02
收藏:0
阅读:349
for num in {88..3};do # LAST_HOUR=`date -d ‘-${num} hour‘ +%H` 不可for循环,报格式错误 LAST_HOUR=`date "+%H" -d -${num}hour`
原文:https://www.cnblogs.com/tnsay/p/9996826.html
评论(0)