I have a file name cmd_cha that has the following statement in it:
@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/cmd_program/bh1bsc1_cmd_out"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
imlct:spg=0;
mcsap:file=tlogio,io1=all,sdate=ADD_DATE,stime=0800;
end;
@CLOSE
@DISCONNECT
@SET LOGFILE=("/home/bham_mta/cmd_program/bh1bsc2_cmd_out"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC2"
@CONNECT (SWITCH)
imlct:spg=0;
mcsap:file=tlogio,io1=all,sdate=ADD_DATE,stime=0800;
end;
@CLOSE
@DISCONNECT
I want a small script that will scan the file and susbtitute the actual date of the prior day anywhere it finds the words ADD_DATE in the date format like 20020523
I hope this is pretty easy, I am a bit rushed for time.
Thanks as always for the help!
Beaster
@LABEL BEGIN
@SET LOGFILE=("/home/bham_mta/cmd_program/bh1bsc1_cmd_out"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC1"
@CONNECT (SWITCH)
imlct:spg=0;
mcsap:file=tlogio,io1=all,sdate=ADD_DATE,stime=0800;
end;
@CLOSE
@DISCONNECT
@SET LOGFILE=("/home/bham_mta/cmd_program/bh1bsc2_cmd_out"
@LOG(LOGFILE)
@SET SWITCH="BH1BSC2"
@CONNECT (SWITCH)
imlct:spg=0;
mcsap:file=tlogio,io1=all,sdate=ADD_DATE,stime=0800;
end;
@CLOSE
@DISCONNECT
I want a small script that will scan the file and susbtitute the actual date of the prior day anywhere it finds the words ADD_DATE in the date format like 20020523
I hope this is pretty easy, I am a bit rushed for time.
Thanks as always for the help!
Beaster