title: How to replace the manifest of a war file from bash?
body: <p>I have a war file foo.war in my current working directory. I have a MANIFEST.MF file, too. </p>
  
  <pre><code>ls .
  foo.war MANIFEST.MF
  </code></pre>
  
  <p>Within foo.war, there is a file foo/META-INF/MANIFEST.MF.
  I want to replace that file inside the war with the file in my working directory.
  I think zip can be used to do this, but I don't understand the zip documentation. </p>
  
  <p>What would be the correct usage?</p>
  
  <p>How can I verify that it was done correctly?</p>
  
  <p>How would I do that with jar?</p>