for i in 1 2 3 4 5 . . . . . . 1000 do nohup validation.pl $i & let j=($i%50) if [ $j -eq 0 ]; then sleep 20 fi done