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

Keith Mitnick

As Senior System Engineer & COO at HCS, Keith wears many hats. He is responsible for a myriad of duties at HCS. Keith is always willing to do the job at hand and is never afraid to get his hands dirty.

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