--> more birthday.sh #!/bin/ksh # # Author: Bob # Date: 4/11/2002 # Purpose: Give the day of the week you were born # # Read birthmonth echo "Enter your birthmonth [MM]" read MM # Read birthdate echo "Enter your birthdate: [DD]" read DD # Read birthyear echo "Enter your birthyear: [YYYY]" read YYYY # Calculate the # of days you've been alive NUMBER=`date +%j` NO_OF_YEARS=`expr 2002 - "$YYYY"` NO_OF_DAYS=`expr "$NO_OF_YEARS" \* 365` CALC=`expr "$NO_OF_DAYS" + "$NUMBER"` echo "You have been alive for "$CALC" days!" cal "$MM" "$YYYY"
------------------------------------------------ sn22@wkstn [/export/home/sun22] ------------------------------------------------ --> sh birthday Enter your birthmonth [MM] 04 Enter your birthdate: [DD] 11 Enter your birthyear: [YYYY] 1943 You have been alive for 21637 days! April 1943 S M Tu W Th F S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ------------------------------------------------ sn22@wkstn [/export/home/sun22] ------------------------------------------------
|
Select pages from WAGONEERS.COM:
Buy this FSJ decal... ...use PayPal to pay for it! |
AMSOIL synthetic lubricants and filters (please use customer #283461)
Shop AMAZON.com from wagoneers.com!
| |||||||
|
these pages protected by US Copyright laws John Meister copyright © 1995-2001 all rights reserved contact john-at-wagoneers.com | "Join the fight against spam (UCE)! Eliminate spam!" |
Washington State has a $500 fine for "spam" (unsolicited commercial email)! |