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.


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.