The following shell script displays "Good morning!", "Good afternoon!" or "Good evening!" based on the time it gets executed. It stores the output of
date +%H to the variable hour, and this is taken as the basis for decision making.
The +%H option tells the date command that it is 24-hour format hour that is to be printed (or redirected to our script)