I\'ve created a bash script that takes a parameter. I want to pass that parameter to sed to replace an existing string with another which is composed of the variable:
Variable expansion does not happen within single quotes. Do it in double quotes:
sed -i -e 's/name="master"/name="'"$variable"'"/g' test