title: curl: (3) Illegal characters found in URL with bash shell
body: <p>I want to get the random page from wiki and paste it on txt file.</p>
  
  <pre><code>curl -I https://en.wikipedia.org/wiki/Special:Random|grep -E "Location:"|cut -d ' ' -f2 &gt; "result.txt"
  </code></pre>
  
  <p>But when I retrieve it from txt file and it come out the error.</p>
  
  <pre><code>cat result.txt| xargs -I % curl %
  </code></pre>