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
Post a Comment