格式1:if 条件 ; then 语句; fi
![](http://i2.51cto.com/images/blog/201804/18/bd88bd3d180a93a42e1894766400551f.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_...
date +%H:%M:%S = date +%T 时间
date +%s 时间戳
date -d @1434248742
date -d "+1day"一天后date -d "-1day"一天前
date -d "-1month" 一月前
格式1:if 条件 ; then 语句; fi
格式2:if 条件; then 语句; else...