title: How to sequentially copy multiple rows (e.g. 1-10 then 11-20 and so on) from one big file using FOR loop to other multiple files (maybe sed or awk)?
body: <p>I'm new to Bash and Linux. I'm trying to make it happen in Bash. So far my code looks smth like this:</p>
  <p>The problem is with coping using awk or sed, i suppose... as i try to put the sum of a constant and a variable somehow wrong. Brackets or different quotes do not make any difference.</p>
  <pre><code>for i in {0..10}
  do
      touch /path/file$i
      awk -v &quot;NR&gt;=1+$i*9 &amp;&amp; NR&lt;=$i*9&quot; /path/BigFile &gt; /path/file$i
      (or with sed) sed -n &quot;1+$i*9,$i*9&quot; /path/BigFile &gt; /path/file$i
  done
  </code></pre>
  <p>Thank you in advance</p>