title: How do I curl multiple resources in one command?
body: <p>Say I am trying to download a set of 50 lecture notes efficiently. These notes are inside the <code>prof</code> subdirectory of a university website. The 45th lecture note is inside the <code>lect45</code> subdirectory as a pdf entitled <code>lect45.pdf</code>. I get my first pdf as follows:</p>
  
  <pre><code>curl -O http://www.university.edu/~prof/lect1/lect1.pdf
  </code></pre>
  
  <p>How do I get all my 50 notes efficiently using cURL and bash? I'm trying to do this from the command line, not through a Python / Ruby / Perl script. I know something like the below will generate a lot of 404s:</p>
  
  <pre><code>curl -O http://www.university.edu/~prof/lect{1..50}/lect{1..50}.pdf
  </code></pre>
  
  <p>so what will work better? I would prefer an elegant one-liner over a loop.</p>