title: Curl and rename images using string from text file
body: <p>I have a TXT file containing a list of URLs like:</p>
  
  <pre><code>website/media/945746/ui4Q9EJoUEmVLtUNhtRX.JPG John.JPG
  website/media/226251/6epk0CUwnhofAjZMP2xp.JPG Kelly.JPG
  website/media/658552/Q4qQgLF2bvVwxI37jgQG.JPG Sharon.JPG
  website/media/856214/8xlBzvlG4TNfKgo86gM6.JPG Bill.JPG
  </code></pre>
  
  <p>I am using <code>xargs -n 1 curl -O &lt; urls.txt</code> to download the images.</p>
  
  <p>How do I download the file so <code>ui4Q9EJoUEmVLtUNhtRX.JPG</code> is renamed as <code>John.JPG</code> , <code>6epk0CUwnhofAjZMP2xp.JPG</code> is renamed as <code>Kelly.JPG</code> etc.</p>