哪位大虾能帮忙将下面的sh程序写下注释啊,谢谢!
哪位大虾能帮忙将下面的sh程序写下注释啊,谢谢!
#!/bin/sh
SH_DIR=/u1/tmn/etc
export SH_DIR
DEL_PATH=/u1/tmn/bin/alcol/hw_omc/log
export DEL_PATH
. $SH_DIR/crontab.env
DT=`date "+%m%d "`
DA=`date "+%d "`
if [ "$DT " -eq "0101 " ]
then
CUR_YEAR=`date "+%y "`
DEL_YEAR=`expr $CUR_YEAR - 1`
DEL_DATE=`date "+200 "$DEL_YEAR "1231 "`
else
if [ "$DA " -eq "01 " ]
then
CUR_MON=`date "+%m "`
case $CUR_MON in
02,04,06,08,09 ) DEL_MON=`expr $CUR_MON - 1`
DEL_DATE=`date "+20%y "$DEL_MON "31 "`
;;
11 ) DEL_MON=`expr $CUR_MON - 1`
DEL_DATE=`date "+20%y "$DEL_MON "31 "`
;;
05,07,10 ) DEL_MON=`expr $CUR_MON - 1`
DEL_DATE=`date "+20%y "$DEL_MON "30 "`
;;
12 ) DEL_MON=`expr $CUR_MON - 1`
DEL_DATE=`date "+20%y "$DEL_MON "30 "`
;;
03 ) COU_YEAR=`date "+20%y "`
COU_MOD=`expr $COU_YEAR % 4`
if [ "$COU_MOD " -eq "0 " ]