class fun with cal--> 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" |
The Art of Linux System Administration published by O'Reilly Media Study Guide for the LPIC-2 Certification Exams |
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |