Terry's blog

Focus on bigdata and cloud.

博客园 首页 新随笔 联系 订阅 管理

2018年7月23日 #

摘要: 需求:从当前时间前6个月开始执行某个语句,直到执行到当前日期的前一天。 shell脚本如下: #!/bin/bash yesterday=`date -d -1day +%Y%m%d` sixmonthsago=` date -d -6month +%Y%m%d` echo $sixmonthsag 阅读全文
posted @ 2018-07-23 18:15 王晓成 阅读(1760) 评论(0) 推荐(0) 编辑