我想下载一些文件,如下所示:
http://example.com/directory/file1.txt
http://example.com/directory/file2.txt
http://example.com/directory/file3.txt
http://example.com/directory/file4.txt
.
.
http://example.com/directory/file199.txt
http://example.com/directory/file200.txt
任何人都可以使用 shell 脚本帮助我吗?这是我正在使用的,但它只下载第一个文件。
for i in {1..200}
do
exec wget http://example.com/directory/file$i.txt;
done