Date: Wed, 14 Nov 2007 12:33:53 -0500 From: Bill Banks <office@ourweb.net> To: Bill Moran <wmoran@potentialtech.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: shell programming Message-ID: <473B3181.8050109@ourweb.net> In-Reply-To: <20071114123010.f6ab79cf.wmoran@potentialtech.com> References: <47349D10.20709@ourweb.net> <20071109193001.Y20961@wojtek.tensor.gdynia.pl> <473B2F54.7030208@ourweb.net> <20071114123010.f6ab79cf.wmoran@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
thanks Bill Moran wrote: > In response to Bill Banks <office@ourweb.net>: > > >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?473B3181.8050109>