Pronto... =)
for t in $(seq -w 1 1 99999); do
wget "http://exemplo/${t}.txt" ;
done
caso queira abrir tudo em paralelo :
for t in $(seq -w 1 99999); do
wget "http://exemplo/${t}.txt" &
done
On 7/24/07, Franz Gustav Niederheitmann <[EMAIL PROTECTED]> wrote:
Lista,
como faço para contar de 00001 ate 99999 no shell????
estou tentando criar alguns arquivos com essa contagem para depois usar
com o wget -i, jah que o wget naum permite
wget http://exemplo/[00001-99999].txt
alguem sabe como criar um script que escreve em um arquivo todos esses
txt para depois usar com o wget -i?
ex do conteudo do arquivo:
#arquivo
http://exemplo/00001.txt
http://exemplo/00002.txt
http://exemplo/00003.txt
http://exemplo/00004.txt
http://exemplo/00005.txt
http://exemplo/00006.txt
.....
http://exemplo/99999.txt
--
Franz Gustav Niederheitmann <[EMAIL PROTECTED]>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
Ricardo Carlini Sperandio
Analista/Consultor Linux
Connectcom - GISUT / CEF
GEDEL: Grupo Especializado em Desenvolvimento Linux
DCC/UFMG
Computers are like air conditioners.
They don't work when you open Windows.