#!/bin/bash
if [ "$3" = "" ];
then
	clear
        echo
	echo " Usage: $0 <offsetbegin> <offsetend> <jumps>"
	echo " e.g.: $0 5000000 5500000 360"
	echo
	exit -1
fi

xpl="./tiffspl33t.pl"
offset=$1
offsetend=$2
jumps=$3

until [ "$offset" -gt "$offsetend" ];
do
	echo " Offset: $offset"
	$xpl $offset
	offset=$[$offset+$jumps]
done
