I have data like this in Source_file.txt
5daee1ef55297ba2fac78933
And in Target_file.txt has
$$API_JOB_ID=5daed2a255297ba2fac78930
$$API_JOB_RES=succeeded
$$API_SERVER=awsabc1108
Now, I need to replace the Source_file.txt
value in Target_file.txt
.
Output should be like below
$$API_JOB_ID=5daee1ef55297ba2fac78933
$$API_JOB_RES=succeeded
$$API_SERVER=awsabc1108
Please note that Source_file.txt values are dynamically changing every time when other processes completed. Hence Target file has to be updated every time with correct $$API_JOB_ID
I would need the Unix command to resolve this.