Find the answer to your Linux question:
Results 1 to 3 of 3
How can I download just a piece of a file using wget? Is ti possible? I have looked some man pages and I found nothing interesting... Any idea? To explain ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    2

    wget file piece

    How can I download just a piece of a file using wget? Is ti possible? I have looked some man pages and I found nothing interesting...
    Any idea?

    To explain it better: I have a 2 GB file but I just want to download it from 500 mg to 1gb

  2. #2
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    Welcome to the forum.

    If you don't mind using a different command, curl has this ability:
    Code:
           -r/--range <range>
                  (HTTP/FTP/FILE)  Retrieve  a byte range (i.e a partial document)
                  from a HTTP/1.1, FTP server or a local FILE. Ranges can be spec-
                  ified in a number of ways.
    
                  0-499     specifies the first 500 bytes
    
                  500-999   specifies the second 500 bytes
    
    -- excerpt from man curl q.v.
    Best wishes ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  3. #3
    Just Joined!
    Join Date
    May 2010
    Posts
    2
    Thanks...

    What I am trying to accomplish is a parallel download of a file. I want to download a file in multiple slices. Do you known if there is a script or code for this using curl or wget?
    I have already found “axel” and other programs, but I wanted to do this with a built in function.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...