So right now I have a variable
I also have a file
wrong.txt that reads as follows
John="Superman lives in Gotham City." John="Superman's parents were killed in Crime Alley." James="Superman does not have a bat-mobile."
Now I want to change the file's contents using sed. Obviously, I need to replace Superman with batman. I tried doing it with sed, but there were no changes made to the file.
Here is what I did
sed -i -e "s/John=\"Superman/John=\"$var1/g" wrong.txt