From: William Li <wli@cincom.com>
Subject: Shell script or command for future 'date' ?
Date: 1996/12/13 [thread overview]
Message-ID: <32B0912D.49A2@cincom.com> (raw)
Hi,
I am new for shell programming and I wonder if someone could help me on
the following problem. I have a DEC Alpha box with DEC UNIX 4.0 and I
need to write a shell script (for both csh and ksh) which will generate
an input card file for a program that runs periodically.
This input card file contains only 1 line with the following format
cm cd cy tm td ty <8 spaces> 7m 7d 7y
where cm, cd, cy are current month, day, year resp.,
tm, td, ty are tomorrow's month, day, year resp. and
7m, 7d, 7y are month, day and year for 7 days later.
I know the unix command - date +"%m %d %y", will give me the first part
of the line but what about the rest of the line and how to concatenate
the output. Can this be done easily by a shell script?
Thanks in advanced for any help and/or info.
Best regards,
William
reply other threads:[~1996-12-13 5:00 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