Download all links from a text file made simple with Wget

Written on 20 July 2016

You can download all links from a text file use simple loop, like these line of scripts.

for link in $(cat /path/to/file) ; do  
  wget $link 
done  

But it can be simpler with a Wget command

wget -i linkfile  

In linkfile just paste all link line by line.
Fo example

https://file1.txt  
https://file2.jpg  
https://file3.md  
https://...  
....


If you want to download those links to and directory use -P

wget -i linkfile -P /path/to/dir  

Happy downloading :)