#! /bin/sh # # create and draw maze and solution # m=8; n=16 case "$#" in 0) :;; 1) m="$1";; 2) m="$1"; n="$2";; *) m="$1"; n="$2";; esac name="m-$m-$n" echo "creating $name.txt" ./create "$m" "$n" > "$name.txt" # draw maze and solution # ./draw.sh "$name"