title: Applying 'for loop' in wget
body: <p>I am trying to get a for loop to work, fetching (wget) from a website through a list of files saved as <code>list</code>, using the above code</p>
  <pre><code>for f in `cat list`; do wget --header='Content-type:application/json' 'https://grch37.rest.ensembl.org/ld/human/${f}/1000GENOMES:phase_3:CEU?content-type=application/json;window_size=500;r2=0.8;attribs=yes'
  -O - &gt; ${f}.json; done;
  </code></pre>
  <p>Here is the content of my <code>list</code> file</p>
  <pre><code>rs10023056
  rs10025704
  rs10026092
  rs10026790
  rs10028892
  </code></pre>
  <p>There is an error where the for loop cannot pass the correct name from <code>list</code> to the for loop, resulting in the error as stated below.</p>
  <pre><code>--2022-07-27 12:05:21--  https://grch37.rest.ensembl.org/ld/human/$%7Bf%7D/1000GENOMES:phase_3:CEU?content-type=application/json;window_size=500;r2=0.8;attribs=yes
  Resolving grch37.rest.ensembl.org (grch37.rest.ensembl.org)... 193.62.192.83
  Connecting to grch37.rest.ensembl.org (grch37.rest.ensembl.org)|193.62.192.83|:443... connected.
  HTTP request sent, awaiting response... 400 Bad Request
  2022-07-27 12:05:22 ERROR 400: Bad Request.
  </code></pre>
  <p>It seems to be the names in my <code>list</code> file are replaced with $%7Bf%7D.</p>
  <p>Could someone help me in this?</p>
  <p>Thank you.</p>