#!/bin/bash
time=`date +%H:%M:%S`
echo $time
if [[ "$time" > "00:00:01" ]] && [[ "$time" < "11:30:00" ]]
then
echo "当前时间还没到中午"
else
echo "已过中午,请休息"
fi
#!/bin/bash
time=`date +%H:%M:%S`
echo $time
if [[ "$time" > "00:00:01" ]] && [[ "$time" < "11:30:00" ]]
then
echo "当前时间还没到中午"
else
echo "已过中午,请休息"
fi