I need to be able to enter a date (MMDD) on the command line and, within the ksh script, use that value to build a file name for zcat.
Example: if the date I want is 1217, I'd want to enter
. dailyrec.ksh 1217
on the command line and then call zcat with something like
zcat /u/work/filename_MMDD.dbg > newfileMMDD.err
I've tried various and sundry things but have hit a (mental) wall - I'm sure I'll be embarassed when I learn how simple this is to do but, at my advanced age, being embarassed isn't the worst thing that can happen to you ...
Thanks in advance for the assist.
Tom
Example: if the date I want is 1217, I'd want to enter
. dailyrec.ksh 1217
on the command line and then call zcat with something like
zcat /u/work/filename_MMDD.dbg > newfileMMDD.err
I've tried various and sundry things but have hit a (mental) wall - I'm sure I'll be embarassed when I learn how simple this is to do but, at my advanced age, being embarassed isn't the worst thing that can happen to you ...
Thanks in advance for the assist.
Tom