title: download files using bash script using wget
body: <p>I've been trying to create a simple script that will take a list of file to be downloaded from a .txt file, then using a loop it will read the .txt what files needs to be downloaded with the help of the other separated .txt file where in the address of the files where it will be downloaded. But my problem is I don't know how to do this. I've tried many times but I always failed.</p>
  
  <pre><code>file.txt
  1.jpg
  2.jpg
  3.jpg
  4.mp3
  5.mp4
  </code></pre>
  
  <p>=====================================</p>
  
  <pre><code>url.txt
  url = https://google.com.ph/
  </code></pre>
  
  <p>=====================================</p>
  
  <pre><code>download.sh
  #!/bin/sh
  url=$(awk -F = '{print $2}' url.txt)
  for i in $(cat file.txt);
  do 
  wget $url
  done
  </code></pre>
  
  <p>Your help is greatly appreciated. </p>