title: Pause Bash loop
body: <p>I have the following Bash script. How can I make it pause on keypress or pause after a number of loops, but if I don't press any key it should loop?</p>
  
  <pre><code>for i in `cat files` 
  do
      echo $i
  done
  </code></pre>