tmpl=000for (( num=99; num<101; num++ )) ; do tnum="${tmpl:${#num}}${num}" wget "http://www.aaa.com/download/file${tnum}.zip"done
--09:30:03-- http://www.aaa.com/download/file099.zip => `file099.zip'Resolving www.aaa.com... 63.240.229.211, 63.240.178.211Connecting to www.aaa.com|63.240.229.211|:80... connected.HTTP request sent, awaiting response... 404 Not Found09:30:03 ERROR 404: Not Found.--09:30:03-- http://www.aaa.com/download/file100.zip => `file100.zip'Resolving www.aaa.com... 63.240.229.211, 63.240.178.211Connecting to www.aaa.com|63.240.229.211|:80... connected.HTTP request sent, awaiting response... 404 Not Found09:30:04 ERROR 404: Not Found.
[arysin@mypreciousss u]$ bash --versionGNU bash, version 3.2.15(2)-release (x86_64-mandriva-linux-gnu)Copyright (C) 2005 Free Software Foundation, Inc.