[root@test ~]# more date.sh
#!/bin/sh
#this is date scripts
date=`date +%H`
case $date
in
0[1-9] | 1[0-2] )
echo "
************
Good Morning
************";;
1[3-7] )
echo "
**************
Good Afternoon
**************";;
2[1-4] | 1[89] )
echo "
************
Good Evening
************";;
esac
阅读(282) | 评论(0) | 转发(0) |