Curl

Discussion in 'Linux, BSD and Other OS's' started by Impotence, Dec 29, 2006.

  1. Impotence

    Impotence May the source be with u!

    Likes Received:
    6
    Trophy Points:
    38
    is it possible to get curl to read urls from a file like wget? i had a look through the man page but didnt see anything obvious?

    if its not a option, how can i use a shell script to pull lines out of a text file?
    something along the lines of
    Code:
    while [ line_number_counter -le number_of_lines_in_document]
    do
    
    curl -O line number <line_number_counter> from document
    line_number_counter = `expr line_number + 1`
    
    done
    
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    What exactly do you want this to do?
     
  3. Impotence

    Impotence May the source be with u!

    Likes Received:
    6
    Trophy Points:
    38
    grab multiple sets of sequentially numbered files, for example
    Code:
    Curl -O http://www.site.com/part[1-5].zip
    
    but only in want to load "http://www.site.com/part[1-5].zip" from line X of a plain text file (with one address per line).
     

Share This Page