#!/usr/bin/ksh #Script to give a greeting based on the current day of week dow=$(date +%a) print "Greetings today is $(date +%A)." print "You are $(whoami) to me." print -n "You are $(awk -F: "/^$(whoami):/{print \$5}" /etc/passwd) " print "to everybody else." case $dow in Mon) print "Oh Boy it's Monday!!!" ;; Tue) print "Ruby Tuesday. (Sorry Mick) " ;; Wed) print "Aw shucks, the week is half over." ;; Thu) print "It's payday!\npickup your check\a\a\n" ;; Fri) print "TGIF!" ;; Sat|Sun) print "It's the weekend!\nGet a life." ;; esac