title: Creating and writing into .plist with Terminal or bash script
body: <p>I need to create a .plist file during post install and the only option I can use is a bash script. I have to create a foo.plist into <code>/Library/launchAgents</code> with a bash script and I've used the following command:</p>
  
  <pre><code>cd /Library/launchAgents
  touch foo.plist
  </code></pre>
  
  <p>now I need to write contents into this .plist file for example like this:</p>
  
  <pre><code>".plist contents" &gt;&gt; foo.plist
  </code></pre>
  
  <p>Is there a command that can do this in the terminal?</p>