在linux中写出一个shell脚本,在12点之前。在屏幕上打印早上好。12点后,18点前打印
date=$(date +%k)if[ $date>12 ]then echo "下午好!"elif [ $date<12 ]then echo "早上好!"fi