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