title: best way to extract a file from a zip file and put it back into the zip file after editing
body: <p>I am wondering if anyone can help me with a shell script to do the following job:</p>
  <p>Extract a file from a zip file and put it back in after some editing, e.g. using <code>sed</code> to do some replacement.</p>
  <p>I want to avoid extracting all contents of the zip file into a temporary folder. It could be possible that the zip file contains files with the same name as the one I want to replace with editing. In such case, I want to specify the full path of such file inside the zip file.</p>
  <p>Is there any good way to do this task?</p>