Hi Friends,
I have some problem in replacing a string which is enclosed between $ signs. Please see below:
I am trying to replace the string ($str1_str2_str3_str4$) with 12.345.65.234 but no luck...
I am using the following command for this but it's not doing anything, if I take out the second "\$" sign it works perfect but still I have the second $ sign with the replaced string.
cat web.xml |
sed -e "s/\$str1_str2_str3_str4\$/12.345.65.234/" > web_temp.xml
Can somebody give your thoughts how I can replace this whole string ($str1_str2_str3_str4$) with the IP address.
Thanks for your help.
Venkat