title: How can I iterate through lines of a remote file in shell using cURL?
body: <p>I understand how to iterate through lines in a local file. But how about a remote file?</p>
  
  <pre><code>while read NAME
  do
      echo "$NAME"
  done &lt; curl -sL 'http://mylistofnames.com/list.html
  </code></pre>
  
  <p>If this were local, I would replace the last line with <code>done &lt; names.txt</code>. I'm stuck on remote.</p>