Article 5F89X wget from text files containing urls in seperate lines.

wget from text files containing urls in seperate lines.

by
junomario
from LinuxQuestions.org on (#5F89X)
Sorry for bad English.

I normally use this command to download files from urls saved in text files Code: $wget -i textfile.txt -P [foldername] I give folder name same as text file.

But today I come around with multiple text files. All those text files have random names.

What wget command/arguments I should be using for *.txt files and foldername should be inherited from that text file for location directory of each file.

I tried Code:$wget -i *.txtI also tried Code:cat *.txt | parallel --gnu "wget {}"But still all files are downloaded in working directory.latest?d=yIl2AUoC8zA latest?i=UtRCPWFmBlc:2fP2kCGSL-0:F7zBnMy latest?i=UtRCPWFmBlc:2fP2kCGSL-0:V_sGLiP latest?d=qj6IDK7rITs latest?i=UtRCPWFmBlc:2fP2kCGSL-0:gIN9vFwUtRCPWFmBlc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments