wagoneers.com



--> 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] ------------------------------------------------

wagoneers.com




Select pages from WAGONEERS.COM: 

the Full Size Jeep decal! © 1998-2000 John Meister
Buy this FSJ decal...   ...use PayPal to pay for it!
Make payments with PayPal, or sign up here!


a viable option to bloated and unstable code


AMSOIL synthetic lubricants and filters
(please use customer #283461)

Independent Lifetime Dealer John Meister - customer #283461 - since 1983


Shop AMAZON.com from wagoneers.com! 
Search:
Keywords:
SHOP from wagoneers.com: in Association with Amazon.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)!


this is an approved Family-Friendly Site       read the Bible