利用date,判断明天否为1号
tday=$(date -d tomorrow +%d)
if [ $tday == "01" ]; then
echo "Today is last day of this month"
fi
--
/*
*@author: chen xueqin
*@email: robb...@gmail.com
*@see: http://robbie.bokee.com
*@see: http://groups.google.com/group/fzlug
*@love: freedom,tux,open source
*/