Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.unix.wizards Subject: Re: Cron - First Saturday of the month Message-ID: <26C2F2F4.20D3@tct.uucp> Date: 10 Aug 90 17:46:26 GMT References: <19744@orstcs.CS.ORST.EDU> <1990Aug8.185745.16606@iwarp.intel.com> <1990Aug8.214539.1264@watserv1.waterloo.edu> Organization: ComDev/TCT, Sarasota, FL Lines: 10 According to dmcanzi@watserv1.waterloo.edu (David Canzi): >if [ `date | sed 's/^... ... *\([^ ]*\) .*/\1/'` -le 7 ] At least on SysV, this is working too hard! Use this instead: if [ "`date +%d`" -le 7 ] Manual pages are wonderful things... -- Chip Salzenberg at ComDev/TCT ,