![]() |
|
|
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 |
| Can "sed" substitute word on a specific line? | minifish | Shell Programming and Scripting | 2 | 02-14-2008 05:25 PM |
| sed substitute / for \ : error "Function can not be parsed" | candyflip2000 | Shell Programming and Scripting | 3 | 07-18-2006 04:02 AM |
| Failed to check status code in "rsh" command | nir_s | Shell Programming and Scripting | 9 | 07-03-2006 10:05 AM |
| Failed to replace string with "sed" | nir_s | Shell Programming and Scripting | 7 | 05-08-2006 05:25 AM |
| Pattern substitute for "\" | ss_hpov | Shell Programming and Scripting | 3 | 06-28-2002 09:29 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Failed to substitute string with "<>"
Hi folks, I have the following template file: Code:
application.filePath.core = /core-RIGHTV/Html/ application.filePath.xbip = /xbip-RIGHTV/Html/ translator.rootContext = /translator_<schame_name>/ I need to substitute the string in the third line "<schema_name>" with $SCHEMA_NAME I ran the following command: Code:
sed -e 's/<schema_name>/IAS10G/g' application.properties IAS10G is $SCHEMA_NAME Nothing was happened.The string was not substituted. What was wrong? Thanks in advance, Nir |
|
||||
|
Hey vino! Nice to meet you again here. Your command with the "echo" works perfect,I agreed. But I'm running the following: Code:
platform:/tmp> sed -e 's/<schema_name>/IAS10G/g' application.properties application.filePath.core = /core-IAS10G/Html/ application.filePath.xbip = /xbip-IAS10G/Html/ translator.rootContext = /translator_<schame_name>/ As you can see ,the string wasn't substituted. Thanks in advance, Nir |
|
|||||
|
True,
Look at the words that are colored. platform:/tmp> sed -e 's/schema_name>/IAS10G/g' application.properties application.filePath.core = /core-IAS10G/Html/ application.filePath.xbip = /xbip-IAS10G/Html/ translator.rootContext = /translator_<schame_name>/ With those spelling differences, I dont think sed will work the way you want. Vino |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|