#!/bin/bash for i in {1..100000} do wget "www.epaveldas.lt/recordImageSmall/KVB/C130000496362?exId= $i" done