tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY:  dumb question about putting sysdate into a variable
@ 2001-05-15 18:10 Kimberly_Agle
  0 siblings, 0 replies; only message in thread
From: Kimberly_Agle @ 2001-05-15 18:10 UTC (permalink / raw)
  To: tru64-unix-managers

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@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....

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-15 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-15 18:10 SUMMARY: dumb question about putting sysdate into a variable Kimberly_Agle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox