I'm using cURL in ubuntu to download some files like
pic001.jpg
pic002.jpg
pic003.jpg
...
pic999.jpg
While some files may be missing from this sequence but when I just use
curl -O http://foo.bar/pic[001-999].jpg
cURL will download a 404 error page for those missing ones. How can I avoid this?