I need help on insert, here it is:
1. I have an input text file consists of the following:
>TUPLE ADDED
>TUPLE ALREADY EXISTS
2. Then I have an existing out file consists of the following:
123456789:test:hello
123456789:test:hello
2. I would like to have a procomm script to read the input text file and insert into the ouput file. Example, if "TUPLE ADDED" found then insert and "TUPLE ALREADY EXISTS" then insert
123456789:test:hello:OK:TUPLE ADDED
123456789:test:hello:FAILED:TUPLE ALREADY EXIST
else if "TUPLE ADDED or TUPLE ALREADY EXISTS" not found
then
123456789:test:hello:FAILED
123456789:test:hello:FAILED
Thanks for your help.
1. I have an input text file consists of the following:
>TUPLE ADDED
>TUPLE ALREADY EXISTS
2. Then I have an existing out file consists of the following:
123456789:test:hello
123456789:test:hello
2. I would like to have a procomm script to read the input text file and insert into the ouput file. Example, if "TUPLE ADDED" found then insert and "TUPLE ALREADY EXISTS" then insert
123456789:test:hello:OK:TUPLE ADDED
123456789:test:hello:FAILED:TUPLE ALREADY EXIST
else if "TUPLE ADDED or TUPLE ALREADY EXISTS" not found
then
123456789:test:hello:FAILED
123456789:test:hello:FAILED
Thanks for your help.