Answer the question
In order to leave comments, you need to log in
How in bash wget to save a file with the name from the link part?
Good day.
There is a file with 10000+ links that needs to be downloaded using wget.
In the link file in the form:
google.com/page?=abcde
The
html pages will be saved.
Accordingly, if you register, wget -i links.txt
then the files will be in the form
Answer the question
In order to leave comments, you need to log in
Yes, it is quite. using the wget
-o, --output-file=FILE option write messages to FILE by the
script, you read the file and give wget the url from the file and the file name that the script generates from the url.
velvetflower can be
https://stackoverflow.com/questions/1521462/loopin...
a A
b B
c C
a A
b B
c C
a
b
c
while read s ; do
d=$(echo $s|sed's|^.*/||')
echo "$s" "$d" ;
done </tmp/a.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question