Date: Sat, 28 Jun 2003 09:31:47 -0500 From: "Micheal Patterson" <micheal@cancercare.net> To: <freebsd-questions@freebsd.org>, "Dragoncrest" <dragoncrest@voyager.net> Subject: Re: Write date/time to file? Message-ID: <016d01c33d82$0b31ed10$0201a8c0@dredster> References: <5.2.0.9.2.20030628095709.00a05790@pop.voyager.net>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Dragoncrest" <dragoncrest@voyager.net> To: <freebsd-questions@freebsd.org> Sent: Saturday, June 28, 2003 9:01 AM Subject: Write date/time to file? > HI all. As part of the ongoing development of a spam tracking script I'm > writing, I'm looking for tidbits of information on how to do certain things. > > My question today is simple. What I need to know is what's the command at > the console to display date and time? I'm looking for an output similar to > this: Sat Jun 28 09:02:12 2003 > > I'm sure it's something incredibly simple, but I've looked and I can't > find anything that would logically create something like that. Many thanks > in advance. > Dragoncrest, I'm assuming that you want this information to either be part of the file name or echo'd into a file itself at the beginning. If so, try "date". micheal@caverns.us.eu.org:/usr/local/home/micheal/>date Sat Jun 28 09:05:38 CDT 2003 Hope it helps. -- Micheal Patterson Network Administration Cancer Care Network 405-733-2230
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?016d01c33d82$0b31ed10$0201a8c0>