I am trying to replace the string in a file after some particular string in the file.
I am reading both string from one input file.
localhostTest|http:\\localhost:7222
After string "locatTest" it should place the "http:\\localhost:7222"
The below logic is replacing that word in the file with input file word. I want to replace after that word.
InputFILE=/home/Temp/Name.txt
while IFS="|" read String Url
do
echo "String is $String URL is $Url"
< JMS_Monitor_Template.txt sed -e "s/$String/$Url/g" > "/home/Temp/Test/Log/Server2/Server1/Monitor_Template_$Url.txt"
done < $HSFILE