title: omitting %0D from a given input while loading a list of urls
body: <p>I have this <code>bash</code> script which loads a list of <code>urls</code> and download each file with a numeric name :</p>
  
  <pre><code>counter=1
  while IFS= read -r url;do
      fileName="$counter" # Add a rule to define a new name for each file here
      counter=$((counter+1))
      wget -O "$fileName.mp4" "$url"
  done &lt; list 
  </code></pre>
  
  <p>However when I load <code>urls</code> there's a problem, when I open the <code>urls</code> in <code>nano</code> it looks like this :</p>
  
  <pre><code>www.somesite.com/43c264c5a93459842e6bf1cbbc3a1a9b.mp4
  www.somesite.com/fa6463dfecb3d03dade573b28531c692.mp4
  www.somesite.com/7abac8e804c2a21379b3542d02c871fd.mp4
  www.somesite.com/6346cd728b281297eb075804626cf007.mp4
  </code></pre>
  
  <p>However when the <code>script</code> loads these <code>urls</code> in <code>$filename</code> variable it ends up like this :</p>
  
  <pre><code>www.somesite.com/24ebbbc4a45a7331e0789fda099f3d55.mp4%0D
  </code></pre>
  
  <p>And that little <code>%0D</code> is totally ruining the whole process, how do I get rid of it?</p>