title: Editing plist file using shell script
body: <p>I have used pkgbuild to create a default Component Property List file. The file looks like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-     1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;BundleHasStrictIdentifier&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;BundleIsRelocatable&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;BundleIsVersionChecked&lt;/key&gt;
          &lt;true/&gt;
          &lt;key&gt;BundleOverwriteAction&lt;/key&gt;
          &lt;string&gt;upgrade&lt;/string&gt;
          &lt;key&gt;RootRelativeBundlePath&lt;/key&gt;
          &lt;string&gt;MyApp.app&lt;/string&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>I want to modify this file by using shell script. I tried using <strong>defaults write</strong> but it didn't do anything.</p>
  
  <p>What is the way to do it?(For example: I want to set BundleIsRelocatable to false)</p>