title: How to automatically answer no to attempt to continue script with unzip command
body: <p>I have a bash script, which is scheduled and has to be executed without any user interaction after it starts.
  My bash script has an unzip command inside that looks like this: </p>
  
  <pre><code>yes n | unzip -o ${filename}
  </code></pre>
  
  <p>I use <code>yes</code> command to answer to the following question prompted to the user:</p>
  
  <pre><code>write error (disk full?).  Continue? (y/n/^C)
  </code></pre>
  
  <p>The problem is: user can't answer to this question because the script is scheduled to run on its own without user interaction.
  That's the reason i use <code>yes</code>, but I will never be sure that the answer that i automatically provide (n in this case) will be provided to the question I mentioned above. I also used the option <code>-o</code> to avoid the command <code>yes</code> answering to the 
  <code>replace foo? [y]es, [n]o, [A]ll, [N]one, [r]ename: y</code> question</p>
  
  <p>I would like a suggestion to a safer/better way to avoid any user interaction on this script. I need the unzip command to overwrite existing files and answering 'n' to <code>Continue? (y/n/^C)</code></p>