I have a file having some text like:
ipaddress="127.0.0.1"
I have to replace the 127.0.0.1 with a variable say $ip_add, where $ip_add=127.0.0.2 the following sed command is not working
sed -i 's/127.0.0.1/$ip_add/' conf.py
when i run this command the text is file like this
ipaddress="$ip_address"
Please help. thanks in advance