I am trying to change XML files using a Perl one-liner. The XML file is set up as
<NameBool name="Hardware Enabled">
<BoolConfig>
<value>false
I need to change the file to true. I have written a one-liner that seems to execute, but it never actually changes the file. What am I doing wrong?
Code
perl -p0777i -e 's/<NamedBool name=\"HardwareEnabled\">\n<BoolConfig>\n<value>false/<NamedBool name=\"HardwareEnabled\">\n<BoolConfig>\n<value>true/m' filename*