From owner-freebsd-questions@FreeBSD.ORG Wed Nov 14 17:33:55 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 DF83C16A418 for ; Wed, 14 Nov 2007 17:33:55 +0000 (UTC) (envelope-from office@ourweb.net) Received: from ourweb.net (joey.ourweb.net [216.236.255.138]) by mx1.freebsd.org (Postfix) with ESMTP id 7E8A113C43E for ; Wed, 14 Nov 2007 17:33:55 +0000 (UTC) (envelope-from office@ourweb.net) Received: from [127.0.0.1] (unverified [216.236.255.29]) by ourweb.net (SurgeMail 3.8f2) with ESMTP id 24598-1760316 for multiple; Wed, 14 Nov 2007 13:23:20 -0500 Message-ID: <473B3181.8050109@ourweb.net> Date: Wed, 14 Nov 2007 12:33:53 -0500 From: Bill Banks User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Bill Moran References: <47349D10.20709@ourweb.net> <20071109193001.Y20961@wojtek.tensor.gdynia.pl> <473B2F54.7030208@ourweb.net> <20071114123010.f6ab79cf.wmoran@potentialtech.com> In-Reply-To: <20071114123010.f6ab79cf.wmoran@potentialtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: wpa@ourweb.net 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:33:56 -0000 thanks Bill Moran wrote: > 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 Banks 508-829-2005 Wachusett Programming Ourweb http://www.ourweb.net http://www.ourwebtemplates.com