From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 17:30:13 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0170716A417 for ; Wed, 14 Nov 2007 17:30:13 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id C264213C48A for ; Wed, 14 Nov 2007 17:30:12 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 82D91EBC84; Wed, 14 Nov 2007 12:30:11 -0500 (EST) Date: Wed, 14 Nov 2007 12:30:10 -0500 From: Bill Moran To: Bill Banks Message-Id: <20071114123010.f6ab79cf.wmoran@potentialtech.com> In-Reply-To: <473B2F54.7030208@ourweb.net> References: <47349D10.20709@ourweb.net> <20071109193001.Y20961@wojtek.tensor.gdynia.pl> <473B2F54.7030208@ourweb.net> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: shell programming X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 17:30:13 -0000 In response to Bill Banks : > What am I doing wrough here: > > #!/bin/sh > $DAYN='/bin/date +%a' + "_master.sql" > mysqldump master > $DAYN Those look to be single quotes and not backquotes. (backquote is the upper left key on most keyboards) > > Wojciech Puchar wrote: > > dayoftheweek=`date +%w` > > > > > > > > On Fri, 9 Nov 2007, Bill Banks wrote: > > > >> I'm writing a backup script. I need to get the day of the week into > >> a variable. How can I do it? > >> > >> -- > >> ----------------------------------------------- > >> Bill Banks 508-829-2005 > >> Wachusett Programming Ourweb > >> http://www.ourweb.net > >> http://www.ourwebtemplates.com > >> > >> > >> _______________________________________________ > >> freebsd-questions@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >> To unsubscribe, send any mail to > >> "freebsd-questions-unsubscribe@freebsd.org" > >> > >> > > > > > > -- > ----------------------------------------------- > Bill Banks 508-829-2005 > Wachusett Programming Ourweb > http://www.ourweb.net > http://www.ourwebtemplates.com > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Bill Moran http://www.potentialtech.com