This is a sed command to replace the word false with true in the updates.xml document.

sed -i "" 's/false/true/' /Users/work/Desktop/updates.xml 

Here is a breakdown of the above command.


The -i will edit the file in place.

The "" will get around not having an extension after the -i as required by os x.  

You could also use sed -i.bak which would create a backup of the file before it’s edited instead of the "".

The remainder of the command:  replace “false” with “true” in the file updates.xml. 

You could add a “g” to the command to replace all instances of false with true in the updates.xml document with the command below.

sed -i "" 's/false/true/g’ /Users/work/Desktop/updates.xml

Marianne Carroll

Marianne began her professional career as a musician, recording and touring as a violinist with the 70’s disco sensation CHIC. She then moved into music management as the Executive Director of the Aston Magna Foundation for Music, which sponsored a Summer classical music festival and NEA-funded cross-cultural educational Academy in the Berkshires as well as a concert series at the Metropolitan Museum.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk