Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Hi I need to use wget (or curl or aget etc) to download a file to two different download destinations by downloading it in two halves:

First: 0 to 490000 bytes of file
Second: 490001 to 1000000 bytes of file.

I will be downloading this to separate download destinations and will merge them back to speed up the download. The file is really large and my ISP is really slow, so I need to get help from friends to download this in parts (actually in multiple parts)

The question below is similar but not the same as my need: How to download parts of same file from different sources with curl/wget?

aget

aget seems to download in parts but I have no way of controlling precisely which part (either in percentage or in bytes) that I wish to download.

Extra Info

Just to be clear I do not wish to download from multiple locations, I want to download to multiple locations. I also do not want to download multiple files (it is just a single file). I want to download parts of the same file, and I want to specify the parts that I need to download.

share|improve this question

1 Answer 1

up vote 9 down vote accepted

With curl you should be able to do

curl -o customname -r0-499 <url>

where 0 - 500 would be the byte range

curl man page look at the -r option

Posted by ewindisch in comment

It is better not to use -O here as the OP would like to specify the destinations. curl -o file.part1 -r0-490000 $url & curl -o file.part2 -r490001- $url – ewindisch

share|improve this answer
2  
It is better not to use -O here as the OP would like to specify the destinations. curl -o file.part1 -r0-490000 $url & curl -o file.part2 -r490001- $url –  ewindisch Jan 18 '11 at 15:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.