![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search, replace string in file1 with string from (lookup table) file2? | gstuart | Shell Programming and Scripting | 9 | 06-08-2009 06:11 AM |
| replace string | sam99 | Shell Programming and Scripting | 4 | 03-04-2008 01:39 AM |
| replace a string | melanie_pfefer | Shell Programming and Scripting | 11 | 01-17-2008 10:57 AM |
| Replace string B depending on occurence of string A | hemangjani | Shell Programming and Scripting | 1 | 12-05-2006 05:10 PM |
| How to replace within a string | aukequist | Shell Programming and Scripting | 2 | 02-07-2006 07:42 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to replace string $str1_str2_str3_str4$ to 12.345.65.234
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 |
|
||||
|
Thanks a lot! all.
It worked perfectly. |
| Sponsored Links | ||
|
|