> Ok, I actually went and tested this out this time. The %20 are from wget > escaping spaces, they are not in the file so you could do > cat links.txt | sort | uniq | sed -e 's/ .*//' | xargs -n 1 wget -c > > the sort | uniq pipeline removes identical lines and wget -c option > makes sure that if there is a doubleup, the files dont get overwritten. > Its a hack but it should work. It relies on the first mirror for each > package being valid. If its not, it will not get that package since sed > prunes all but the first link. So if one of the packages doesnt > download, you'll have to get one of the links for it manually and > download it. > Alternatively you could try: > > cat links.txt | sort | uniq | xargs -n 1 -i{} sh -c 'for i in {}; do > wget -c $i && break; done' > > this command will actually iterate over the alternative links for each > file until it one of them works. It's ot perfect but works reasonably > well for me. Use this one and if it breaks for you, use the first, less > complicated line. > > Eugene. > > PS and I dont see how the line in the wiki could have worked well unless > emerge -fp used to have different behavior.
Thanks a lot Eugene, that second line worked great. Let me know if I should update the wiki: gentoo-wiki.com/TIP_Gentoo_for_dialup_users - Grant -- gentoo-user@gentoo.org mailing list