Wow, that was fast!!! Many many thanks to the dozens who answered within
minutes! I wanted the syntax for dumping the system date into a variable.
The second suggestion I tried, from Michael Bucholz, was
today=`date +%Y%m%d%H%M%S`
It worked fine. I shouldn't have put in those double quotes.
Thanks again.
----- Forwarded by Kimberly H Agle/Clerk of Courts/Common Pleas Court on
05/15/01 02:08 PM -----
Kimberly H
Agle To: tru64-unix-managers_at_ornl.gov
cc:
05/15/01 Subject: dumb question
01:45 PM
Hello managers,
I'm trying to do something relatively trivial and it's driving me nuts.
All I want to do is dump the system date into a variable so I can use it in
a filename. I tried today < `date +"%Y%m%d%H%M%S"`, but then there's
nothing in the today variable. Can somebody tell me what little thing I'm
overlooking?
Thanks....
Received on Tue May 15 2001 - 18:10:42 NZST