I've been trying to write a sed command to substitute a single word on single line, preserving all the leading white spaces and words.
e.g. From:
<Attr name="x" value="yes"/>
To:
<Attr name="x" value="no"/>
I know that I could just rewrite the entire line but I'd prefer a more elegant way to do it. Thanks!