title: Curl Script pipe output
body: <pre><code>for url in `cat urlList_sample.txt`; do
  curl $url &gt;&gt; urlsOut.txt;
  echo "" &gt;&gt; urlsOut.txt;
  done
  </code></pre>
  
  <p>Using the code above to look a bunch of URL's in a text document, all on there own line.</p>
  
  <p>Two questions:</p>
  
  <ol>
  <li>how do I get my script to add quotes to beginning and end of the url before calling curl?</li>
  <li>how do I get in my urlsout.txt file the URL it curled plus the response? Currently I'm only getting the response. I would prefer it to be url curled ^ response</li>
  </ol>
  
  <p>Hi all sorry, just getting back to this issue, can anyone help me out?</p>