* Shell script or command for future 'date' ?
@ 1996-12-13 5:00 William Li
0 siblings, 0 replies; only message in thread
From: William Li @ 1996-12-13 5:00 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-13 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-13 5:00 Shell script or command for future 'date' ? William Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox