I am trying to write a small script that would
first say hi from 6am to 12 pm and say Good afternood from
1pm to 5pm. I know we use if but it seems I'm doing something wrong.
if $date "+%T" -ge 6 -a le 12
echo "Good morning"
if $date "+%T" -ge 1 -a le 5
echo "Good afternoon"
Please tell me what's wrong in there, I can't find it.