#!/bin/bash if [[ $# -lt 2 ]] then echo "Usage: $0 " exit fi if [[ $1 -lt 0 || $2 -lt 0 ]] then echo "Arguments must be both positive!" exit fi if [[ $2 -lt $1 ]] then echo "Argument 1 must be less than Argument 2!" fi for ((i=$1;i<=$2;i++)) do for ((j=$1;j<=$2;j++)) do echo -n $((i*j)) echo -ne "\t" done echo -e "\n" done exit