1、字符串转为日期格式及日期加减
end_dt1=$1
begin_dt1=`date -d "${end_dt1} -60 day " +%Y-%m-%d`
end_dt2=$2
begin_dt2=`date -d "${end_dt2} -60 day " +%Y%m%d`
1、字符串转为日期格式及日期加减
end_dt1=$1
begin_dt1=`date -d "${end_dt1} -60 day " +%Y-%m-%d`
end_dt2=$2
begin_dt2=`date -d "${end_dt2} -60 day " +%Y%m%d`
本文标题:shell日期格式
本文链接:https://www.haomeiwen.com/subject/zemzprtx.html
网友评论