tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Kimberly_Agle () fccourts ! org
To: tru64-unix-managers
Subject: SUMMARY:  dumb question about putting sysdate into a variable
Date: Tue, 15 May 2001 18:10:11 +0000	[thread overview]
Message-ID: <102653647621879.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~2001-05-15 18:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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