#!/bin/bash
# example06
# A script that runs 20 other scripts nymbered o-19
#
# If no first and last numbers are provided the default
# is 1 and 20.
#
# If just one number is provided it will start at that
# (numbered) script.

first=$1
last=$2
tute_path=./tute/tute # This is the path to scripts and script name less number

test -n "$first"
  if [ $? -eq 1 ]; then
    first=0		# the first script default is tute0
  fi

test -n "$last"
  if [ $? -eq 1 ]; then
    last=20		# the last script default is tute
  fi


while [ $first -le $last ]; do	# While $first is <= $last
		sh $tute_path$first		# run command tuteX
		let first=$first+1		# increase by one
done

# end of script
