dotfiles/bin/greetings.sh
2016-10-16 03:48:44 -05:00

10 lines
202 B
Bash
Executable file

#!/bin/sh
#program to print a greeting
hour=$(date +%H)
case "$hour" in
0? | 1[01] ) echo "Good morning $USER";;
1[2-7] ) echo "Good afternoon $USER";;
* ) echo "Good evening $USER";;
esac