> > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i
> > && break; done'
> 
> How about this instead,
> 
> $ wget -ci links.txt
> 
> It always did the job for me :)
> 
> --
> Cheers, Alex.

Hi Alex,

The problem is that the links.txt file was generated by 'emerge -fp
world' and has a bunch of alternate paths for each file separated by
'%20'.  Using 'wget -ci links.txt' turns out like this:

http://gentoo.ccccom.com/distfiles/man-pages-2.07.tar.bz2%20http:/www.fr.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.at.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.uk.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.de.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.us.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2
           => `man-pages-2.07.tar.bz2'
Resolving gentoo.ccccom.com... 206.251.252.55
Connecting to gentoo.ccccom.com[206.251.252.55]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
08:26:12 ERROR 404: Not Found.

Do you know how to get 'emerge -fp world' to return only one path per
file or get wget to use the %20-separated alternate paths properly?

- Grant

-- 
[email protected] mailing list

Reply via email to