标签:
#!/bin/bashtime=`date +%H:%M:%S`echo $timeif [[ "$time" > "00:00:01" ]] && [[ "$time" < "11:30:00" ]]thenecho "当前时间还没到中午"elseecho "已过中午,请休息"fi
shell if 多条件判断 时间大小比较
原文地址:http://www.cnblogs.com/genghaihua/p/5038554.html