Answer the question
In order to leave comments, you need to log in
How to download wget from a link from a file and save not index.html, but site.ru?
There is a file with sites *.ru:
01-PLAN.RU
01-POKROV.RU
01-PRINT.RU
01-PROFI.RU
01-PTM.RU
01-R.RU
01-REGION.RU
01-REMONT.RU
01-RU.RU
01-S.RU
01-SB.RU
01-SBERBANK.RU
Далее около 5 млн. записей
cat ru.txt | xargs -t -P 20 -n1 wget
Answer the question
In order to leave comments, you need to log in
The previous laconic speaker meant that wget has a key -O
that says under what name to save the download.
The link to the manual, as it were, hints at the correct way to find such solutions, and I am extremely impressed with such an educational approach.
However, I recommend that you use this instead of xargs:
while read -r; do wget $REPLY -O $REPLY.html; done < ru.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question