title: Curl a URL list from a file and make it faster with parallel
body: <p>Right now i'm using the followin code:</p>
  
  <pre><code>while read num;
      do M=$(curl "myurl/$num")
      echo "$M"
  done &lt; s.txt
  </code></pre>
  
  <p>where s.txt contains a list (1 per line) of a part of the url.</p>
  
  <p>Is it correct to assume that curl is running sequentially?
  Or is it running in thread/jobs/multiple conn at a time?</p>
  
  <p>I've found this online:</p>
  
  <pre><code> parallel -k curl -s "http://example.com/locations/city?limit=100\&amp;offset={}" ::: $(seq 100 100 30000) &gt; out.txt
  </code></pre>
  
  <p>The problem is that my sequence is coming from a file or from a variable (one element per line) and i can't adapt it to my needs</p>
  
  <p>I've not fully understood how to pass the list to parallel</p>
  
  <p>Should i save all the curl commands in the list and run it with parallel -a ?</p>
  
  <p>Regards,</p>