LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to download compressed archive zip in bulky automatically using wget (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-download-compressed-archive-zip-in-bulky-automatically-using-wget-4175624213/)

BudiKusasi 02-22-2018 05:08 AM

How to download compressed archive zip in bulky automatically using wget
 
How to download compressed archive (zip, 7z, bzip, xz, etc) files from a repository in bulky automatically by use of wget ?

wpeckham 02-22-2018 06:25 AM

WHY "to download compressed archive (zip, 7z, bzip, xz, etc) files from a repository in bulky automatically by use of wget ?"?

Please tell us more.

BudiKusasi 02-22-2018 06:29 AM

Because I want to

teckk 02-22-2018 10:49 AM

Quote:

How to download compressed archive (zip, 7z, bzip, xz, etc) files from a repository
Code:

agent="Mozilla/5.0 (Windows NT 10.0; WOW64; rv:57.0) Gecko/20100101 Firefox/57.0"

wget -U "$agent" <url> -O MyFile.zip

Quote:

in bulky automatically by use of wget ?
Does that mean there is more than one?
Make a list and loop through them
Code:

list=(
http://www.one.zip
http://www.two.zip
http://www.three.zip
)

a=1
for i in ${list[@]}; do
    wget -U "$agent" "$i" -O "$a".zip
    a=$(($a + 1))
done

Look at man wget
And study how to loop on something in bash.

Code:

for i in {1..10}; do
    echo "$i"
    sleep 1
done


BudiKusasi 02-23-2018 09:12 AM

I really get the enlivened idea, I'll try it out.. thanks so much

ondoho 02-24-2018 07:09 AM

you don't even need a shell loop for that, wget can do that all by itself: http://dt.iki.fi/download-filetype-wget


All times are GMT -5. The time now is 02:06 AM.