Are you talking about printing it to the screen, or printing out a hard copy?
If you mean to the screen, then you might have something like:
Code:
FOO=`date +%H|cut -c1`
case $FOO in
2) echo "<some text>"
;;
3) echo "<some text>"
;;
esac
I dont know how your program is set up, but it sounds like you are using case statements. You would put the output (echo) in the appropriate portion of the case.
Read the bash or ksh man page for information on how to use the case statement.
I would recommend that you pick up a good Unix book that includes a section on shell scripting. Several have been recommended in different threads recently on this board.
HTH