Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
I am trying to substitue 4 lines with replaces.
define CA_ID=FRPSADSK122
define ISS_ID=9
define RUN_NBR_FROM=9
define RUN_NBR_TO=9
What I want to do is change the CA_ID value and the other values within them with a replacement value.
I have these values entered within a file and would like to change the values through sed and output them to a different file with the new values for these.
Could some one help me out with a sed command.
I was trying s/"define CA_ID=*$"/"define CA_ID=$ARG1"/ as we want to change them only once on line 4 and the others on the other lines.
Could someone help me to fix these.
Thanks
define CA_ID=FRPSADSK122
define ISS_ID=9
define RUN_NBR_FROM=9
define RUN_NBR_TO=9
What I want to do is change the CA_ID value and the other values within them with a replacement value.
I have these values entered within a file and would like to change the values through sed and output them to a different file with the new values for these.
Could some one help me out with a sed command.
I was trying s/"define CA_ID=*$"/"define CA_ID=$ARG1"/ as we want to change them only once on line 4 and the others on the other lines.
Could someone help me to fix these.
Thanks