At 11:46 AM 11/9/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?

I do this in ksh, but it should work in sh too:

DATE=/bin/date

TODAY=`$DATE +%m-%d-%Y`
TIME=`$DATE +%H:%M:%S`
echo Backups started $TODAY at $TIME

        -Derek



--
-----------------------------------------------
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 "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to