I'm trying to replace a.mysql.com in a file using sed for the following line
'ENGINE': 'a.mysql.com', # MySQL host
How can I replace the text without removing the comment entry?
I tried the below but it isn't working
sed -i -e "s/\('ENGINE': ').*\([^']*\)/\1new.mysql.com\2/g" file.py