title: Run while loop until background process finish its job
body: <p>In linux shell script i have</p>
  
  <pre><code>vlc /some/file/path.mkv &amp;
  wait
  </code></pre>
  
  <p>Now until my background process return <code>wait</code> call will be blocked. But here i want that until my background process return i want to execute one loop and in that print some data continuous. So when ever my background process return/exit i need to break that loop.</p>
  
  <p>How to do that in shell script?</p>