Newsgroups: comp.unix.wizards
Path: utzoo!utgpu!watserv1!dmcanzi
From: dmcanzi@watserv1.waterloo.edu (David Canzi)
Subject: Re: Cron - First Saturday of the month
Message-ID: <1990Aug16.002229.19350@watserv1.waterloo.edu>
Organization: People's Democratic Republic of Uniwat
References: <19744@orstcs.CS.ORST.EDU> <1990Aug8.185745.16606@iwarp.intel.com> <1990Aug11.030818.28876@watserv1.waterloo.edu> <3706@aspect.UUCP>
Date: Thu, 16 Aug 90 00:22:29 GMT
Lines: 12

In article <3706@aspect.UUCP> dave@aspect.UUCP (Dave Corcoran) writes:
>In article <1990Aug11.030818.28876@watserv1.waterloo.edu>, dmcanzi@watserv1.waterloo.edu (David Canzi) writes:
>> if [ `date | awk '{print $3}'` -le 7 ]; then
>
>or:
>if [ `date +%d` -le 7 ]

This doesn't work on all the machines I have access to, so I prefer
the solution using awk.

-- 
David Canzi
