HP3000-L Archives

May 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Newton, Tony" <[log in to unmask]>
Reply To:
Newton, Tony
Date:
Thu, 23 May 2002 15:02:39 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
I'm trying to set a variable to be today's date in DD format, so I am using

:set day=`date -u +%d`

but when I echo $day it is in the D format.  I know the command portion is
working correctly since I can run

:date -u +%d

interactively and get the DD format that I am looking for.  So I must
somehow be losing the leading '0' in the assignment process.  Any Unix
guru's wish to elaborate on how to get around this?
___
Tony Newton


This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2