#!/bin/bash
# determine day of week the 15th is for July for various years
LOG="day-of-the-week-15th-July.txt"
echo "the day of week the 15th occurs for July for these years" > $LOG
echo "=========================================================" >> $LOG
YEARS="1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970"
for x in $YEARS
do
echo "Su Mo Tu We Th Fr Sa - $x" >> $LOG
cal 7 $x | grep 15 >> $LOG
done
echo "=========================================================" >> $LOG
perl -pi -e 's$15$15$g' $LOG
cat $LOG
|
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 |