I tried to find and replace certain strings in text file and the replace text contains "/" and sed commond did not work. then I tried with awk command and it works fine with terminal with fixed variables. but when I tried to use it with parameters in the loop it dose not work. I have attached the code that I have write so far. could you please find me a solution. this works find in terminal awk '{sub(/input_image/,"https://www.abcd.com/images/XPDDL_R1_20161007.jpg")}1' format2.svg > format2.html
x=1
for param in ${paramO[@]}
do
awk '{sub(/${param}/,"${paramN[x]}")}1' $output_file > temp.txt
cp -rp temp.txt $output_file
let x=x+1
done