curtime=`date "+%H:%M:%S"`
date1="08:00:00"
date2="12:00:00"
date3="13:00:00"
date4="17:00:00"
[[ ("$date1" < "$curtime" && "$curtime" < "$date2") || ("$date3" < "$curtime" && "$curtime" < "$date4") ]] && echo $date1 || echo $date2
阅读(1858) | 评论(0) | 转发(0) |