Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear
- h=`who am i | tr -s " " | cut -d " " -f4 | cut -d ":" -f1`
- if [ $h -lt 12 ]
- then
- echo "Good Morning"
- else if [ $h -ge 12 -a $h -lt 17 ]
- then
- echo "Good Afternoon"
- else
- echo "Good Evening"
- fi
- fi
RAW Paste Data
Copied