confuseddddd
Programmer
Have a parameter file that contains many parameters but stuck in the middle of all the parameters are the ones I need to modify. I want to be able to do this processing in a script instead of coding a program. Can anyone give me some suggestions on trying to read the parameter file and modify the parameters???
Parameter File is:
REPORT_PRINTER >../EXE/msprint.ex
SYSTEM_PRINTER >../EXE/msprint.ex
EDIT_PROGRAM ../EXE/pico
ARCHIVE_PATH ../ARCHIVE/
BIL_BAL Y
WORK_PATH ../WORK/
BILL_TRANSACTION_LOG Y
START_DATE_YMD 20030501
END_DATE_YMD 20030531
SENDER_ID 363839542
RECEIVER_ID 610600439
TEST_IND P
I need to change the start and end dates each month. I started to do the following:
date '+%Y%m%d' > $datefile
grep -y START_DATE parameter.ini > start
grep -y END_DATE parameter.ini > end
but then realized I don't need to separate the start and end dates just to find the start_date and end_date parameters and change the dates accordingly.
Sorry am new to unix scripting and just need some guidance.
Thanks in advance for your help.
Parameter File is:
REPORT_PRINTER >../EXE/msprint.ex
SYSTEM_PRINTER >../EXE/msprint.ex
EDIT_PROGRAM ../EXE/pico
ARCHIVE_PATH ../ARCHIVE/
BIL_BAL Y
WORK_PATH ../WORK/
BILL_TRANSACTION_LOG Y
START_DATE_YMD 20030501
END_DATE_YMD 20030531
SENDER_ID 363839542
RECEIVER_ID 610600439
TEST_IND P
I need to change the start and end dates each month. I started to do the following:
date '+%Y%m%d' > $datefile
grep -y START_DATE parameter.ini > start
grep -y END_DATE parameter.ini > end
but then realized I don't need to separate the start and end dates just to find the start_date and end_date parameters and change the dates accordingly.
Sorry am new to unix scripting and just need some guidance.
Thanks in advance for your help.