How to wget a textile with a folder name and URL?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a text file with a specific folder name and URL with a delimiter 't'. I wish to download all the URL files into their respective folder directories. What do I do?



Also, this is actually the ImageNet URL file with SYSNET indicator at the front.



Is there any alternative way to download ImageNet image into their respective folder like this?



folder1 http://example1.com
folder2 http://example2.com
folder3 http://example3.com









share|improve this question



















  • 1




    You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
    – Raman Sailopal
    Oct 2 '17 at 10:47










  • Do you mind provide some example? Im still new to linux...
    – JefferyLR
    Oct 2 '17 at 10:48










  • I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
    – Raman Sailopal
    Oct 2 '17 at 10:53














up vote
0
down vote

favorite












I have a text file with a specific folder name and URL with a delimiter 't'. I wish to download all the URL files into their respective folder directories. What do I do?



Also, this is actually the ImageNet URL file with SYSNET indicator at the front.



Is there any alternative way to download ImageNet image into their respective folder like this?



folder1 http://example1.com
folder2 http://example2.com
folder3 http://example3.com









share|improve this question



















  • 1




    You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
    – Raman Sailopal
    Oct 2 '17 at 10:47










  • Do you mind provide some example? Im still new to linux...
    – JefferyLR
    Oct 2 '17 at 10:48










  • I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
    – Raman Sailopal
    Oct 2 '17 at 10:53












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a text file with a specific folder name and URL with a delimiter 't'. I wish to download all the URL files into their respective folder directories. What do I do?



Also, this is actually the ImageNet URL file with SYSNET indicator at the front.



Is there any alternative way to download ImageNet image into their respective folder like this?



folder1 http://example1.com
folder2 http://example2.com
folder3 http://example3.com









share|improve this question















I have a text file with a specific folder name and URL with a delimiter 't'. I wish to download all the URL files into their respective folder directories. What do I do?



Also, this is actually the ImageNet URL file with SYSNET indicator at the front.



Is there any alternative way to download ImageNet image into their respective folder like this?



folder1 http://example1.com
folder2 http://example2.com
folder3 http://example3.com






linux wget






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 2 '17 at 12:07









Grayson Kent

19711




19711










asked Oct 2 '17 at 10:34









JefferyLR

93




93







  • 1




    You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
    – Raman Sailopal
    Oct 2 '17 at 10:47










  • Do you mind provide some example? Im still new to linux...
    – JefferyLR
    Oct 2 '17 at 10:48










  • I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
    – Raman Sailopal
    Oct 2 '17 at 10:53












  • 1




    You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
    – Raman Sailopal
    Oct 2 '17 at 10:47










  • Do you mind provide some example? Im still new to linux...
    – JefferyLR
    Oct 2 '17 at 10:48










  • I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
    – Raman Sailopal
    Oct 2 '17 at 10:53







1




1




You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
– Raman Sailopal
Oct 2 '17 at 10:47




You can use awk to parse the data and then use the built in system function to execute the wget command so something like awk ' system("wget -O ""$1"/filename.txt" ""$1""") ' sourcefile.txt
– Raman Sailopal
Oct 2 '17 at 10:47












Do you mind provide some example? Im still new to linux...
– JefferyLR
Oct 2 '17 at 10:48




Do you mind provide some example? Im still new to linux...
– JefferyLR
Oct 2 '17 at 10:48












I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
– Raman Sailopal
Oct 2 '17 at 10:53




I just did. With awk, $1 will represent the first space delimited piece of data on each line and so folder1 on the first line. $2 will represent the second piece of data and so http.... We then use the system function and pass it the built wget command to be executed.
– Raman Sailopal
Oct 2 '17 at 10:53















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395618%2fhow-to-wget-a-textile-with-a-folder-name-and-url%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f395618%2fhow-to-wget-a-textile-with-a-folder-name-and-url%23new-answer', 'question_page');

);

Post as a guest













































































64 bkllt,G,AY2,BMF4i1gXFXnMKGZ QLr51cLy6g0aAsHrBCz
iNTOXPl X,PFq,DFpr49YtQVXkWHF8700N012F32Ef47A 17,GlWHapyf,iNRnqq

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS