Shell variables in sed script

Use double quotes for the sed expression.

new_db_name=$(echo "$new_db_name" | sed "s/$replace_string/$replace_with/")

Leave a Comment