download_pic.sh 登录后复制 #!/bin/bash # 批量下载有序文件(pdf/pic/video,and so on) url="http://www.baidu.com/" type=jpg echo "Starting download..." sleep 2 for i in $(seq 5) do echo "Downloading $i.$type" curl $curl/$i.$type -o /tmp/${i}.$type sleep 1 done 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16. 验证: 登录后复制 [root@logstash ~]# sh download_pic.sh Starting download... Downloading 1.jpg ...... [root@logstash ~]# 1.2.3.4.5. 原创作者: ztj1216 转载于: https://blog.51cto.com/ztj1216/11701022