linux - How to apply sed here? -


i have following string -

<rom readonly="false" persist="false" type="string" name="rom_code_url">romcode_url_val</rom> 

now, want replace the romcode_ur_val following -

dvb://1000.b.2cec.1/romcode_1.0.xml 

how can using sed?

it's simple 's/pattern/replacement/' proper escaping, or equivalent expression. example:

sed 's romcode_url_val dvb://1000.b.2cec.1/romcode_1.0.xml ' <input-file> 

note: trailing space important we're using spaces delimiters, rather forward slashes.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -