title: Shell Script - read two lines of file and read one line of another file
body: <p>Say, I have two files.</p>
  
  <p>File1 contains:</p>
  
  <pre><code>line1
  line2
  line3
  line4
  line5
  line6
  line7
  line8
  line9
  line10
  </code></pre>
  
  <p>and File2 contains:</p>
  
  <pre><code>anotherline1
  anotherline2
  anotherline3
  </code></pre>
  
  <p>I want to do a while loop so that it outputs this into a File3:</p>
  
  <pre><code>line1
  line2
  anotherline1
  line3
  line4
  anotherline2
  line5
  line6
  anotherline3
  line7
  line8
  anotherline1
  line9
  line10
  anotherline2
  </code></pre>
  
  <p>I've searched here for an answer but I can't figure out how to do it.
  I must say I'm pretty noob at shell scripting...</p>
  
  <p>Also: The "while loop" should be until reaching end of file1. Doesn't matter how long is File2, actually, in my personal scenario, File2 will always be shorter than File1. Output should be: File1Line1, File1Line2, File2Line1, File1Line3, File1Line4, File2Line2.... etc</p>
  
  <p>Any help?</p>
  
  <p>note: if this was already answered before, then mods please close this question. I just couldn't find any answers after googling for some hours.</p>
  
  <p>EDIT: Added clarification of when to end the loop.</p>