Hi Si1414.
I do several downloads that way. What I do is to use a little bash scripting to read every line so I can use wget's -O option to rename the output:
Code:
#!/bin/bash
while read -r link
do
output="${link##*pid=}"
echo wget "$link" -O "$output"
done < ./slist.txt
Note that in this example I'm not actually downloading, but just echoing the command. Try it, and when you feel comfortable remove the word echo.
If the files are fairly big, or you have an not-so-stable connections, I would also advice to use a cycle in case 'wget' fails:
Code:
#!/bin/bash
while read -r link
do
output="${link##*pid=}"
echo wget -c "$link" -O "$output"
until [ $? = 0 ]
do
echo wget -c "$link" -O "$output"
done
done < ./slist.txt
Hope it helps. Let us know how it goes.
Regards.
Bookmarks