I am new to scripting.
I have the below three files:
Availability.json
Source URLs.txt
Target URLs.txt
My requirement is I need to search for URLs present in Source URLs.txt and replace them with Target URLs.txt in Availability.json file.
How can we achieve this in shell scripting? We have some 50 URLs.
Content: Availability.json
"drillDownUrl": "https://appdync-mex-cgn-2u.mex.group.net:8090/controller/#/location=METRIC_BROWSER&timeRange=last_30_minutes.BEFORE_NOW.-1.-1.180&application=1000&metrics=APPLICATION_COMPONENT.647.4743559",
"label": null,
"description": null,
"drillDownUrl": "https://appdync-mex-cpo-7u.mex.group.net:8090/controller/#/location=METRIC_BROWSER&timeRange=last_30_minutes.BEFORE_NOW.-1.-1.180&application=1&metrics=APPLICATION_COMPONENT.647.474",
Source_URLs.txt
https://appdync-mex-cgn-2u.mex.group.net:8090/controller/#/location=METRIC_BROWSER&timeRange=last_30_minutes.BEFORE_NOW.-1.-1.180&application=1000&metrics=APPLICATION_COMPONENT.647.4743559
https://appdync-mex-cpo-7u.mex.group.net:8090/controller/#/location=METRIC_BROWSER&timeRange=last_30_minutes.BEFORE_NOW.-1.-1.180&application=1&metrics=APPLICATION_COMPONENT.647.474
Target_URLs.txt:
https://www.apdyn.com/Application#=12
https://www.appdyn.com/Application#=123