title: How to execute a Bash script multiple times in parallel with different arguments each time?
body: <p>I haven't explained this question enough so it was misunderstood as duplicate.</p>
  
  <p>I want to read N lines each time of a CSV file and execute a script that operates the lines (names). How can I send N lines as an argument to another script and execute it in parallel?</p>
  
  <p>The file is a CSV with +400000 lines like this:</p>
  
  <pre><code>nombre,ape_paterno,ape_materno
  ALFREDO,AGUILAR,AGUILAR
  ANGEL,AGUILAR,AGUILAR
  CARLOS,AGUILAR,AGUILAR
  DANIEL,AGUILAR,AGUILAR
  EDUARDO,AGUILAR,AGUILAR
  ELIZABETH,AGUILAR,AGUILAR
  FERNANDO ,AGUILAR,AGUILAR
  FRANCISCA,AGUILAR,AGUILAR
  FRANCISCO ,AGUILAR,AGUILAR
  FRANCISCO JAVIER,AGUILAR,AGUILAR
  ...
  </code></pre>
  
  <p>I want something like this:</p>
  
  <pre><code>{
  read 
  while IFS="," read $N lines
  do 
     sh ${DIR}/Downloader.sh $N-Lines-as-argument &amp;
  done } &lt; "$input"
  wait
  </code></pre>
  
  <p>I have tried the answers from <a href="https://stackoverflow.com/questions/8314499/read-n-lines-at-a-time-using-bash">here</a> but my result gives null.</p>