shell 中可以for 循环的时间加减日期格式

for num in {88..3};do
# LAST_HOUR=`date -d '-${num} hour' +%H`  不可for循环,报格式错误
LAST_HOUR=`date "+%H" -d -${num}hour`

 

posted on 2018-11-21 18:22  山高似水深  阅读(1658)  评论(0编辑  收藏  举报

购买方式 点击下面图标购买