i have something like this,
cat filename.txt
hui this si s"dfgdfg" omeone ipaddress="10.19.123.104" wel hope this works
i want to replace only 10.19.123.104 with different ip say 10.19.123.103
i tried this
sed -i "s/'ipaddress'/'ipaddress=10.19.123.103'/g" filename.txt
output should be like this
hui this si s"dfgdfg" omeone ipaddress="10.19.123.103" wel hope this works
its not working.. i think my command is wrong.. can anyone plz help
---------- Post updated at 08:24 PM ---------- Previous update was at 08:14 PM ----------
got it finally
sed 's/ipaddress=\"$/ipaddress=10.19.123.103/' filename