Thread View: comp.unix.programmer
6 messages
6 total messages
Started by matthew kravitz
Thu, 23 Jan 1997 00:00
date stamp in shell scripts
Author: matthew kravitz
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
8 lines
912 bytes
912 bytes
hello earthlings- how do i place a date stamp on an output file from within a shell script? (ksh prefer) is there a system vaviable? thanks very- matthew kravitz matthew.kravitz@systecinc.com
Re: date stamp in shell scripts
Author: Roger L. Cordes, Jr.
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
14 lines
1183 bytes
1183 bytes
matthew kravitz wrote: > how do i place a date stamp on an output file from within a > shell script? If you mean into the file, man date(1). If you mean set the access time/date for the file, man touch(1). Maybe, R. -- Remove spaces below for reply-to address: r o g e r @ r a l e i g h . i b m . c o m
Re: date stamp in shell scripts
Author: Sanjay Cherubala
Date: Thu, 23 Jan 1997 00:00
Date: Thu, 23 Jan 1997 00:00
11 lines
1070 bytes
1070 bytes
1. If you need to datestamp a file man touch 2. If you need a datestamp in a file man date Sanjay -- (spcherub@koame001.delcoelect.com) *** Press any key to continue or any other key to quit ***
Re: date stamp in shell scripts
Author: John Montgomery
Date: Fri, 24 Jan 1997 00:00
Date: Fri, 24 Jan 1997 00:00
12 lines
1175 bytes
1175 bytes
matthew kravitz wrote:
>
> hello earthlings-
> how do i place a date stamp on an output file from within a shell script?
> (ksh prefer)
> is there a system vaviable?
> thanks very-
> matthew kravitz
> matthew.kravitz@systecinc.com
echo `date` >> your_file
Re: date stamp in shell scripts
Author: Markus Strand
Date: Sun, 26 Jan 1997 00:00
Date: Sun, 26 Jan 1997 00:00
10 lines
911 bytes
911 bytes
John Montgomery <johnmont@newbridge.com> writes:
> echo `date` >> your_file
Why use echo and not only date?
date >> your_file
t.MStr
Re: date stamp in shell scripts
Author: era eriksson
Date: Mon, 27 Jan 1997 00:00
Date: Mon, 27 Jan 1997 00:00
16 lines
1382 bytes
1382 bytes
On Fri, 24 Jan 1997 09:08:30 -0500, John Montgomery <johnmont@newbridge.com> posted to comp.unix.programmer, comp.unix.questions, comp.unix.shell, fj.questions.unix: > echo `date` >> your_file Bleeeep. Useless Use Of Backticks! date >>your_file /* era */ -- See <http://www.ling.helsinki.fi/~reriksso/> for mantra, disclaimer, etc. * If you enjoy getting spam, I'd appreciate it if you'd register yourself at the following URL: <http://www.ling.helsinki.fi/~reriksso/spam.html>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads