[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] QuickStart tutorial
From: |
Ángel González |
Subject: |
Re: [Bug-wget] QuickStart tutorial |
Date: |
Thu, 14 Oct 2010 23:40:18 +0200 |
User-agent: |
Thunderbird |
Tony Lewis wrote:
> Having said all of that, you can more easily do the same thing with a shell
> script that invokes wget repeatedly. The downside of the shell script
> approach is that you won't be reusing the connection to the server.
You can do it with one connection by piping the input file:
( for i in `seq 1 10`; do echo http://rahulprasad.com/pics/img$i.jpg;
done ) | wget -i -
Or if you are not concerned with portability:
for ((i=1; i <= 10 ; i++))
do
echo http://rahulprasad.com/pics/img$i.jpg
done | wget -i -
If you have bash 4 it's even easier:
wget http://rahulprasad.com/pics/img{1..10}.jpg
These tricks should be stored somewhere...
- [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- Re: [Bug-wget] QuickStart tutorial, Ángel González, 2010/10/13
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- RE: [Bug-wget] QuickStart tutorial, Tony Lewis, 2010/10/13
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/13
- RE: [Bug-wget] QuickStart tutorial, Tony Lewis, 2010/10/14
- Re: [Bug-wget] QuickStart tutorial,
Ángel González <=
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/14
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/15
- Re: [Bug-wget] QuickStart tutorial, Rahul Prasad, 2010/10/15
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/15
- Message not available
- Re: [Bug-wget] QuickStart tutorial, Giuseppe Scrivano, 2010/10/16
Re: [Bug-wget] QuickStart tutorial, Micah Cowan, 2010/10/13