[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] How do I use relative files on the cmd line with a base?
From: |
Ángel González |
Subject: |
Re: [Bug-wget] How do I use relative files on the cmd line with a base? |
Date: |
Thu, 14 Jun 2012 16:29:26 +0200 |
User-agent: |
Thunderbird |
On 14/06/12 13:19, Linda Walsh wrote:
> I have a list of files in a directory.
>
> I only want each wget to retrieve 10 of the files, so I want to use
> parallel to put 10 of the files on wget's command line.
>
> I tried specifying the base with -B, but it seems to ignore it.
>
> how do I specify a base with files on the command line?
>
> I've wanted to do this before ..... where several files I want to fetch
> are in 1 dir, and I only want to type the dirname 1 time, so how does
> one do this in wget?
>
> Thanks...
> linda
I'm not sure if this is a question on splitting a list of urls in groups
of 10, or about not typing the domain for each url (paste command
doesn't work?).
Assuming you are using a unix-like shell, you can use:
wget http://example.org/path/{file1,file2,subfolder/file3,file4}
and that will expand being equivalent to:
wget http://example.org/path/file1 http://example.org/path/file2
http://example.org/path/subfolder/file3 http://example.org/path/file4