#!/usr/bin/env sh if (( $# < 2 )) then echo "Error, missing parameters. Example: ./Image2Image.sh width height" else for i in `seq 1 10`; do schemer2 -minBright=0 -format img::img -in testinput.png -out testout$i.png -width=$1 -height=$2 done fi